perf: optimize spark_size in spark-expr - #4877
Conversation
mbutrovich
left a comment
There was a problem hiding this comment.
LGTM! Thanks @andygrove!
|
One question though, I can't find all of the benchmarks in the PR description in the code. Were they temporary, hallucinated, or am I missing something? |
Ah, this was from an earlier bug, now fixed, where benchmark results from different runs got mixed together. Let me re-verify this. Moving to draft. |
Updated. It was listing additional benchmarks from a different PR. I updated the PR description to remove those ones. |
What changed
Optimizes
spark_sizein the nativespark-exprcrate.Compute list row sizes from the offset buffer instead of allocating a sliced ArrayRef per row via list_array.value(i), removing one heap allocation per row.
Evidence
main).