Robert Muir created LUCENE-5760:
-----------------------------------
Summary: Speed up BufferedIndexInput.randomAccessSlice
Key: LUCENE-5760
URL: https://issues.apache.org/jira/browse/LUCENE-5760
Project: Lucene - Core
Issue Type: Bug
Reporter: Robert Muir
Today this uses the default implementation, e.g. for readInt(pos):
{code}
@Override
public int readInt(long pos) throws IOException {
slice.seek(pos);
return slice.readInt();
}
{code}
But this causes the bounds to be checked twice. Just like we did for MMap, we
can provide a faster implementation that only checks once: yields ~30% speedup.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]