Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
Description
Now implementation of getValidityBufferValueCapacity is:
(int) (validityBuffer.capacity() * 8L)
Seems no need to convert it to Long then convert it back to Int, just replace with:
validityBuffer.capacity() * 8
VariableWidthVectorBenchmarks#getValueCapacity shows the performance:
Before:
avgt 5 5.731 ± 0.160 ns/op
After:
avgt 5 5.124 ± 0.125 ns/op
Attachments
Issue Links
- links to