uschindler commented on pull request #602:
URL: https://github.com/apache/lucene/pull/602#issuecomment-1012341843


   Great that the original code was still there in a comment. 🤗 This makes easy 
to review.
   
   I don't fully understand the variant that supports negative values. Do we 
still need it as the default one again supports negative values. The code looks 
slightly different with the additional check at end.
   
   In general we now longer can detect invalid vlongs/vints when reading. 
Should we maybe add a check at end? I am not sure if this can be done without 
additional branching. My idea would be to use the loop till one before last and 
add the code at end. But this makes method longer again, possibly breaking 
inlining.
   
   If this works well we should really close the mmap one. 


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