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

ASF subversion and git services commented on LUCENE-6349:
---------------------------------------------------------

Commit 1665081 from [~mikemccand] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1665081 ]

LUCENE-6349: move possible Query clone and hashCode out sync block

> Call hashCode outside of sync in UsageTrackingQueryCachingPolicy.onUse?
> -----------------------------------------------------------------------
>
>                 Key: LUCENE-6349
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6349
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>             Fix For: Trunk, 5.1
>
>         Attachments: LUCENE-6349.patch
>
>
> The Query.hashCode call might be somewhat expensive?  Can/should we call it 
> up front outside of the sync block?



--
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