mbutrovich commented on issue #12467:
URL: https://github.com/apache/arrow-rs/issues/12467#issuecomment-7172347795

   The draft POC is up in #12470, following the steps in 
https://github.com/apache/arrow-rs/issues/12467#issuecomment-7167463717. It 
adds `arrow-bitutils`, a crate with no dependencies, and moves these into it:
   
   - `bit_chunk_iterator` from `arrow-buffer`, which re-exports it, so existing 
paths don't change.
   - parquet's own set-bit count, its `DELTA_BYTE_ARRAY` shared-prefix scan, 
and its statistics byte comparisons, including the comparison from #12460.
   - arrow-ord's 16-byte prefix key for `rank`.
   
   The commits read in order, starting with the pure move. The PR description 
has a table of which copy was kept for each duplicate and why.
   
   parquet uses these without the `arrow` feature. Tuning that went into one 
copy, such as #11818's aarch64 popcount or #12460's comparison, now reaches 
every caller. The column writer's `compare_greater` gets the #12460 comparison 
that the PR left for a follow-up.
   
   The PR also lists the costs. `arrow-buffer`'s own calls to `BitChunks::new` 
now cross a crate boundary. Tests and doc examples in the new crate can't use 
`Buffer`. Sharing a `pub(crate)` helper such as `read_u64` would need a new 
public function.
   
   `cmp_bytes` inlines everything except the scan of a long shared prefix. That 
differs from the split sketched in the issue description, which kept only the 
first-word comparison inline. The ULEB128 and zigzag consolidation @etseidl 
suggested isn't in the POC. Benchmark bot runs will follow on the PR.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to