vsop-479 commented on PR #16245:
URL: https://github.com/apache/lucene/pull/16245#issuecomment-4716309892

   This change has passed the core tests. And I measured its performance: 
   
   When suffix lengths are small (1~8), each value fits in a single VInt byte, 
making VInt extremely fast due to near-perfect branch prediction. Simple64 is 
slower in this case (~1.6x disadvantage).
   
   When suffix lengths are larger (1~200), some values spill into two VInt 
bytes, causing branch mispredictions. Simple64 pulls ahead here (~1.3x 
advantage) since it uses pure bitwise operations with no branching.
   
   For typical BlockTree suffix lengths (1~15), values stay within the 
single-byte VInt range, so VInt is likely faster in practice. Simple64's main 
benefit in this scenario is compression ratio rather than decode speed — it 
uses roughly half the bytes of VInt for small integers.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to