[ 
https://issues.apache.org/jira/browse/LUCENE-7577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15708718#comment-15708718
 ] 

Adrien Grand commented on LUCENE-7577:
--------------------------------------

Centralizing the hashcode caching in one single place sounded like a good way 
to avoid caching bugs in the various places that do that. But I also see how 
IndexWriter should remain the main use-case for PrefixCodedTerms so I don't 
mind leaving things as-is if you don't like this change.

> 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