Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-68567

DefaultShareManager.isSharedWith performs user search 2x times

XMLWordPrintable

    • 7.02
    • 3
    • Severity 2 - Major
    • 11
    • Hide
      Atlassian Update – 21 December 2018

      Dear Jira users,

      We’re glad to announce that this issue will be addressed in our upcoming 8.0 release.

      You can find more details about our 8.0 beta release here — https://community.developer.atlassian.com/t/beta-for-jira-8-0-is-up-for-grabs/25588

      Looking forward to your feedback!

      Kind regards,
      Syed Masood
      Product Manager, Jira Server and Data Center

      Show
      Atlassian Update – 21 December 2018 Dear Jira users, We’re glad to announce that this issue will be addressed in our upcoming 8.0 release. You can find more details about our 8.0 beta release here — https://community.developer.atlassian.com/t/beta-for-jira-8-0-is-up-for-grabs/25588 Looking forward to your feedback! Kind regards, Syed Masood Product Manager, Jira Server and Data Center

      Summary

      Method com.atlassian.jira.sharing.DefaultShareManager#isSharedWith performs call sharedEntity.getOwner() two times.

      Suggest fix

      Reuse the result

      Note

      • Method profiling
        7.82% [90/1151]\ at com.atlassian.jira.sharing.DefaultShareManager.isSharedWith(DefaultShareManager.java:64)
        7.82% [90/1151] \ at com.atlassian.jira.issue.search.SearchRequest.getOwner(SearchRequest.java:191)
        
        5.39% [62/1151]\ at com.atlassian.jira.sharing.DefaultShareManager.isSharedWith(DefaultShareManager.java:65)
        5.39% [62/1151] \ at com.atlassian.jira.issue.search.SearchRequest.getOwner(SearchRequest.java:191)
        
        3.04% [35/1151]\ at com.atlassian.jira.sharing.DefaultShareManager.isSharedWith(DefaultShareManager.java:75)
        
      • Note:
        • isSharedWith(DefaultShareManager.java:64) -> getOwner
        • isSharedWith(DefaultShareManager.java:65) -> getOwner

              ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
              ayakovlev@atlassian.com Andriy Yakovlev [Atlassian]
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: