[ 
https://issues.apache.org/jira/browse/LUCENE-7577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adrien Grand updated LUCENE-7577:
---------------------------------
    Attachment: LUCENE-7577.patch

Here is a patch. The hash code is computed lazily in order not to incur a hit 
on consumers of this class that would not need the hash code.

> PrefixCodedTerms should cache its hash code
> -------------------------------------------
>
>                 Key: LUCENE-7577
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7577
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-7577.patch
>
>
> We have several queries that cache the hashcode of a PrefixCodedTerms 
> instance on top of it, so we could simplify by moving the caching to 
> PrefixCodedTerms directly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to