jpountz commented on PR #816:
URL: https://github.com/apache/lucene/pull/816#issuecomment-1110954677

   Maybe another option would be to get rid of these threadlocals. We're 
relying less on them than we used too, e.g. doc values readers are no longer 
cached in threadlocals since we moved to iterators. Maybe it would be good 
enough to pull a new clone of the stored fields / term vectors readers for 
every document we need to retrieve? And regarding analyzers, we already have a 
reuse mechanism via `PerField`, which we only use for `StringTokenStream`, not 
for token streams produced by analyzers: maybe we could reuse state via 
`PerField` as well so that we would no longer need to cache state in 
threadlocals?


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