mirror of https://github.com/apache/lucene.git
Add CHANGES entry for GH-13581
This commit is contained in:
parent
44a9133824
commit
2f297b7735
|
@ -326,6 +326,8 @@ Optimizations
|
||||||
performance for queries that need skipping such as conjunctions.
|
performance for queries that need skipping such as conjunctions.
|
||||||
(Adrien Grand)
|
(Adrien Grand)
|
||||||
|
|
||||||
|
* GITHUB#13581: OnHeapHnswGraph no longer allocates a lock for every graph node (Mike Sokolov)
|
||||||
|
|
||||||
Changes in runtime behavior
|
Changes in runtime behavior
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
|
||||||
* Provide (read-and-write) locked access to rows of an OnHeapHnswGraph. For use by
|
* Provide (read-and-write) locked access to rows of an OnHeapHnswGraph. For use by
|
||||||
* HnswConcurrentMerger and its HnswGraphBuilders.
|
* HnswConcurrentMerger and its HnswGraphBuilders.
|
||||||
*/
|
*/
|
||||||
public class HnswLock {
|
class HnswLock {
|
||||||
private static final int NUM_LOCKS = 512;
|
private static final int NUM_LOCKS = 512;
|
||||||
private final ReentrantReadWriteLock[] locks;
|
private final ReentrantReadWriteLock[] locks;
|
||||||
private final OnHeapHnswGraph graph;
|
private final OnHeapHnswGraph graph;
|
||||||
|
|
Loading…
Reference in New Issue