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

   ### Description
   
   Today we allow NeighborArray to grow dynamically, but we always allocate at 
its full size, and then grow it by 1 because when it is full-sized, we store a 
new neighbor at index *size* and then remove one of the neighbors based on a 
diversity criterion.  Instead, we might want to figure out how to do more 
efficient surgery on the array. But in the meantime, we could oversize the 
arrays by 1 from the start and then never change their size.


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