liukun4515 commented on PR #2360:
URL: https://github.com/apache/arrow-rs/pull/2360#issuecomment-1210052129

   > > refactor the validation for decimal256 @viirya
   > > almost 50x faster than before. You can get the benchmark code in the 
`decimal_validate.rs` file.
   > 
   > Yea, I think for 256-bit decimal, current value validation is somehow 
inefficient. Comparing directly on bytes should be more efficient on 256-bit 
decimal. For 128-bit, I think that it won't be too much different than i128 
comparison, maybe some marginal number.
   
   agree with your thought about 128-bit, but you miss a point.
   When we validate the decimal128array with 128-bit/i128, we should convert 
the [u8;16] to i128 first with the struct`decimal128`. This will cause some 
unnecessary overhea.


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