Skip to content

Commit 839425e

Browse files
committed
Cherry pick changes from #15138; add MIGRATE.md entry
1 parent eb876b6 commit 839425e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lucene/CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ Optimizations
270270

271271
* GITHUB#15045: Use FixedBitSet#cardinality for counting liveDocs in CheckIndex (Zhang Chao)
272272

273+
* GITHUB#15116, GITHUB#15138: Rewrite of the GroupVInt optimization without lambdas, varhandles
274+
and no code in subclasses. The optimization now auto-detects if an IndexInput supports random access
275+
and uses an optimized branchless approach. Any subclasses that have implemented the optimized method
276+
need to remove it as it will disappear in Lucene 11. (Uwe Schindler)
277+
273278
Changes in Runtime Behavior
274279
---------------------
275280
* GITHUB#14823: Decrease TieredMergePolicy's default number of segments per

lucene/MIGRATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ long maxRamBytesUsed = 50 * 1024 * 1024; // 50MB
3535
IndexSearcher.setDefaultQueryCache(new LRUQueryCache(maxCachedQueries, maxRamBytesUsed));
3636
```
3737

38+
### Possibility to optimize `readGroupVInt()` in `DataInput` subclasses removed (GITHUB#15116)
39+
40+
Any subclass of `DataInput` that have implemented `readGroupVInt()` need to remove that implementation.
41+
42+
Instead make sure that subclasses of `IndexInput` implement `RandomAccessInput`.
43+
Pure `DataInput` subclasses cannot be optimized anymore as they cannot offer random access and seeking.`
44+
3845
## Migration from Lucene 9.x to Lucene 10.0
3946

4047
### DataInput#readVLong() may now read negative vlongs

0 commit comments

Comments
 (0)