mikemccand commented on pull request #2429:
URL: https://github.com/apache/lucene-solr/pull/2429#issuecomment-790583058


   +1 for changing `equals` to not require allocation, enabling us to remove 
the thread-unsafe shared `BytesRef scratch1`!  This makes `find` thread-safe 
(as long as no other threads are making structural changes), and would suffice 
to fix `Luwak`'s usage, right?  This is a nice improvement by itself!
   
   I'm also not a fan of adding the `UnmodifiableBytesRefHash` wrapper -- this 
is indeed an `@lucene.internal` API, not a generic JDK Collections class.


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

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