Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-55797

Performance: Remove the grantedRoles map from RoleBasedAuthorizationStrategy

    Details

    • Sprint:
      GSoC 2019. Coding Phase 2
    • Similar Issues:

      Description

      Currently Role Strategy instance stores a HashMap for various role types. Every time this data is fetched, the logic has to retrieve an item from the container. It causes some performance degradation, especially in the case of proper concurrency locks.

      Generally there is no need to have a HashMap for just several items. I propose to replace it by direct RoleMap fields

       

        Attachments

          Activity

          Show
          abhyudaya Abhyudaya Sharma added a comment - See:  https://github.com/jenkinsci/role-strategy-plugin/pull/85  

            People

            • Assignee:
              abhyudaya Abhyudaya Sharma
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: