romseygeek opened a new pull request, #12357:
URL: https://github.com/apache/lucene/pull/12357

   When reading data from outside the buffer, BufferedIndexInput always resets
   its buffer to start at the new read position.  If we are reading backwards 
(for example,
   using an OffHeapFSTStore for a terms dictionary) then this can have the 
effect of
   re-reading the same data over and over again.
   
   This commit changes BufferedIndexInput to use paging when reading backwards,
   so that if we ask for a byte that is before the current buffer, we read a 
block of data
   of `bufferSize` that ends at the previous buffer start.


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