rmuir commented on PR #17001:
URL: https://github.com/apache/lucene/pull/17001#issuecomment-6814939671

   personally I think this heads in a different direction than where we've been 
going with fixing this determinize() stuff. We've been trying to remove 
determinize() calls in lucene, which i think is the right way to go.
   
   For this one, IMO ideally:
   * Fix any issues so the logic works correctly with NFAs as well as DFAs.
   * Remove determinization check.
   
   We might even consider removing String-based ctors entirely, so we just take 
Automaton and do as told. Personally I think its silly to be doing regex 
parsing in a tokenizer ctor... but maybe we should keep them for now, just 
without any determinization as a step.
   
   It is generally a performance trap to call something expensive in a 
tokenizer ctor. maybe you get saved by threadlocal reuse, but maybe you don't. 
I'm not speaking of indexing, but more the other places analyzers get used 
(e.g. queryparsers, suggesters).


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to