luyuncheng commented on PR #11987: URL: https://github.com/apache/lucene/pull/11987#issuecomment-1335420862
Threadlocal just scale up the StoredFieldsReader's heap useage, BUT when one instance with only 10K segments would use 1G heap memory in `fieldsReaderOrig#buffer` without threadlocal. my idea is when the buffer is rarely used, it should be recycled -- 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