msokolov opened a new issue, #13580:
URL: https://github.com/apache/lucene/issues/13580

   ### Description
   
   Really two issues:
   1. `OnHeapHnswGraph.ramBytesUsed` has a complicated job - it's hard to tell 
whether it takes into account the probably quite significant RAM usage of the 
`ReentrantReadWriteLock` that gets created for every node in the graph.
   2. We create these locks even in the case where we are flushing (via 
`HnswGraphBuilder`) and don't ever use them. We only need locks available when 
merging
   3. We could hash the node ids and share a smaller pool of locks among them 
and thus save a bunch of allocations 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to