Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6349

Call hashCode outside of sync in UsageTrackingQueryCachingPolicy.onUse?

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.1, 6.0
    • None
    • None
    • New

    Description

      The Query.hashCode call might be somewhat expensive? Can/should we call it up front outside of the sync block?

      Attachments

        1. LUCENE-6349.patch
          1 kB
          Michael McCandless

        Activity

          People

            Unassigned Unassigned
            mikemccand Michael McCandless
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: