romseygeek opened a new pull request #109:
URL: https://github.com/apache/lucene/pull/109


   The UkrainianMorfologikAnalyzer was reloading its dictionary every
   time it created a new TokenStreamComponents, which meant that
   while the analyzer was open it would hold onto one copy of the
   dictionary per thread.
   
   This commit loads the dictionary in a lazy static initializer, alongside
   its stopword set.  It also makes the normalizer charmap a singleton
   so that we do not rebuild the same immutable object on every call
   to initReader.


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