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.
|
||||
(Adrien Grand)
|
||||
|
||||
* GITHUB#13581: OnHeapHnswGraph no longer allocates a lock for every graph node (Mike Sokolov)
|
||||
|
||||
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
|
||||
* HnswConcurrentMerger and its HnswGraphBuilders.
|
||||
*/
|
||||
public class HnswLock {
|
||||
class HnswLock {
|
||||
private static final int NUM_LOCKS = 512;
|
||||
private final ReentrantReadWriteLock[] locks;
|
||||
private final OnHeapHnswGraph graph;
|
||||
|
|
Loading…
Reference in New Issue