dsmiley commented on PR #11998:
URL: https://github.com/apache/lucene/pull/11998#issuecomment-1454862916

   Love the change here to migrate away from per-segment-per-threadlocals!
   
   When [porting this to Solr](https://github.com/apache/solr/pull/1360), I 
noticed a new assertion that previously didn't exist.  AssertingLeafReader now 
ensures that a Terms instance is only ever accessed by the thread that created 
it.  Terms does not document wether it's thread-safe or not but I don't believe 
I've ever encountered one that wasn't thread-safe.  Furthermore, the result of 
MultiTerms.getTerms is definitely thread-safe and can be useful to cache as 
there is some overhead.  Thoughts on this?


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