[
https://issues.apache.org/jira/browse/LUCENE-7295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15297907#comment-15297907
]
Dawid Weiss commented on LUCENE-7295:
-------------------------------------
I've been thinking about it and since it's really quite difficult to
canonicalize an automaton then my proposed solution to this would be to
implement instance equivalence instead -- this can be TermAutomatonQuery
equivalence or the underlying Automaton equivalence, I don't have a strong
opinion on this, but it'll be actually more cache-friendly than the current way
of computing hashCode by dumping everything to a (potentially huge) graphviz
object...
> TermAutomatonQuery.hashCode calculates Automaton.toDot().hash
> -------------------------------------------------------------
>
> Key: LUCENE-7295
> URL: https://issues.apache.org/jira/browse/LUCENE-7295
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Dawid Weiss
> Priority: Minor
>
> This is going to be excruciatingly slow? We could at least cache the hash
> code once computed...
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]