msfroh commented on issue #12989:
URL: https://github.com/apache/lucene/issues/12989#issuecomment-1880222297

   > It's very possible I'm missing something, but right now it looks to me 
like we haven't improved on that front. Doing shallow copies of the old array 
without allocating new memory would solve it though.
   
   What you've missed is that I'm a big dum-dum 😁
   
   Thanks for catching that! I refactored some code into a shared method 
(between the "reuse old arrays" case and the "start fresh with a 
TaxonomyReader" case) and foolishly applied the "start fresh" logic every time. 
I've fixed it in a subsequent commit (allocating chunks only starting from the 
index of the last chunk of the old array).
   
   I also incorporated several of the other changes that you suggested. Thanks 
a lot!


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

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