Add CHANGES entry for GH-13581

This commit is contained in:
Michael Sokolov 2024-08-01 10:30:28 -04:00
parent 44a9133824
commit 2f297b7735
2 changed files with 3 additions and 1 deletions

View File

@ -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
---------------------

View File

@ -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;