Commits


tianchen authored and Micah Kornfield committed 3b79a207f7c
ARROW-5909: [Java] Optimize ByteFunctionHelpers equals & compare logic Related to [ARROW-5909](https://issues.apache.org/jira/browse/ARROW-5909). Now it first compare Long values and then if length < 8 then it compares Byte values. Add the logic to compare Int values when 4 < length < 8. Buffer length far greater than 8 have similar performance in equals, in case buffer length < 8 performances are as below: ByteFunctionHelpersBenchmarks#equals Before: avgt 5 7.718 ± 0.401 ns/op After: avgt 5 5.005 ± 0.830 ns/op Author: tianchen <niki.lj@alibaba-inc.com> Closes #4852 from tianchen92/ARROW-5909 and squashes the following commits: 18db45fd3 <tianchen> add more UT dbd092365 <tianchen> remove reverse in ByteFunctionHelpers 41030c4e9 <tianchen> fix e6ab2ed1d <tianchen> ARROW-5909: Optimize ByteFunctionHelpers equals & compare logic