Details
-
Task
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
LUCENE-10366 / LUCENE-10376 found that the loop unrolling isn't necessary anymore. SOLR-15405 implemented the little endian loop unrolling, but this can be simplified to avoid issues in the future.
Example of what is needed: https://github.com/apache/lucene/pull/592 and https://github.com/apache/lucene/pull/602
@Override public final int readVInt() throws IOException { // this can make JVM less confused (see LUCENE-10366) return super.readVInt(); } @Override public final long readVLong() throws IOException { // this can make JVM less confused (see LUCENE-10366) return super.readVLong(); }
Attachments
Issue Links
- relates to
-
SOLR-15405 Make HDFS handle little endian LUCENE-9047
- Closed
-
LUCENE-10366 Reduce the number of valid checks for ByteBufferIndexInput#readVInt
- Open
-
LUCENE-10376 Roll up the loop in vint/vlong in DataInput
- Patch Available
- links to