Skip to content

Conversation

@a10y
Copy link
Contributor

@a10y a10y commented Dec 5, 2025

Avoid reimplementing the slow ListBuilder pathway, use list_from_list_view to also get the ZCTL fast path when available

Avoid a slow ListBuilder pathway when using to_arrow_list that
uses our existing `list_from_list_view`, which has the fastpath
for when a ListView is zero-copy to List anyway.

Signed-off-by: Andrew Duffy <andrew@a10y.dev>
@a10y a10y added the changelog/fix A bug fix label Dec 6, 2025
list_builder.extend_from_array(&array.to_array());
let list_array = list_builder.finish_into_list();
// Convert listview -> list, via the fast path when possible.
let list_array = list_from_list_view(array);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to add a TODO to extend rebuild to support a target offset + size dtype?

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 6, 2025

CodSpeed Performance Report

Merging #5636 will improve performances by 11.1%

Comparing fix-list-arrow (9de9ff2) with develop (374882d)

Summary

⚡ 2 improvements
✅ 1156 untouched
⏩ 617 skipped1

Benchmarks breakdown

Benchmark BASE HEAD Change
binary_search_vortex 875.6 ns 788.1 ns +11.1%
take_10_contiguous 28.8 µs 26.1 µs +10.42%

Footnotes

  1. 617 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@codecov
Copy link

codecov bot commented Dec 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.28%. Comparing base (374882d) to head (9de9ff2).
⚠️ Report is 8 commits behind head on develop.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@connortsui20 connortsui20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep this looks good, I think I just forgot to update this when we did the zctl optimizations

a10y added 2 commits December 6, 2025 14:54
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
@a10y a10y enabled auto-merge (squash) December 6, 2025 19:56
@a10y a10y merged commit ee1e4b2 into develop Dec 6, 2025
47 checks passed
@a10y a10y deleted the fix-list-arrow branch December 6, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants