msokolov commented on PR #14874:
URL: https://github.com/apache/lucene/pull/14874#issuecomment-3057272315

   Separately, I tried using the `Arena.ofAuto().allocateFrom()` construct in 
the on-heap case that is used during indexing and this made indexing incredibly 
slow. I guess it is because we force the allocation of many many small memory 
segments that have to be cleaned up by the garbage collector. Possibly during 
search, when the memory is off-heap, this is faster because the allocation is 
more lightweight? In any case it points to the need to have separate code paths 
for on-heap and off-heap cases, or else more explicit management of the 
lifecycle of these memory segments, rather than leaving it up to GC as happens 
with `ofAuto()`.


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