mapleFU commented on code in PR #55408:
URL: https://github.com/apache/arrow/pull/55408#discussion_r4514127095


##########
cpp/src/parquet/level_comparison.h:
##########
@@ -35,4 +36,78 @@ struct MinMax {
 
 MinMax PARQUET_EXPORT FindMinMax(const int16_t* levels, int64_t num_levels);
 
+/// Counts the levels that satisfy `pred`, in chunks small enough that a
+/// `uint16_t` accumulator cannot overflow.
+///
+/// This is the fallback for inputs that do not fit in a `uint16_t` 
accumulator.
+/// It is kept out of line so that the common path (a single Parquet page 
chunk,
+/// always short enough for one accumulator) is a plain loop without any chunk
+/// bookkeeping in front of it.

Review Comment:
   > Was it measured to make a difference?
   
   Generally speaking yes. The asm and benchmark shows this could benefit the 
performance.
   
   > Was this AI-generated?
   
   Yes, but all changes are verified and reviewed myself



-- 
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