You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2016/11/30 10:11:58 UTC

[jira] [Updated] (LUCENE-7577) PrefixCodedTerms should cache its hash code

     [ 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org