You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clickbench microbenchmark spends significant time in memcmp for not_empty predicate #7766
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I ran the arrow_reader_clickbench microbenchmark in a profiler and noticed that a significant amount of time is spent in memcmp when evaluating comparisons against an empty string. There is already a fast path in GenericByteViewArray::is_eq for unequal lengths, but when both lengths are zero then a call to memcmp is generated.
Describe the solution you'd like
Add another fast path.
Describe alternatives you've considered
This optimization might be too specific to the clickbench queries. I think it is unlikely to be a measurable slowdown for other queries though.
Additional context
I benchmarked this on an uncompressed version of the clickbench hits_1.parquet, generated using parquet-rewrite with no other arguments. Otherwise the majority of time in this benchmark is spent in snappy decompression.
Activity
Extend the fast path in GenericByteViewArray::is_eq for comparing aga…
alamb commentedon Jul 28, 2025
label_issue.pyautomatically added labels {'arrow'} from #7767