rmuir commented on PR #11987: URL: https://github.com/apache/lucene/pull/11987#issuecomment-1335444854
the idea is not to have one instance per segment. there would be zero instances. when you want to retrieve docs from indexreader, the user would call .getFieldsReader() or similar to create one. it would be eligible for GC afterwards. but it means we can reuse buffers per-search and per-merge rather than creating per-document garbage. basically it would work like every other part of lucene. -- 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