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

Performance: Remove the grantedRoles map from RoleBasedAuthorizationStrategy

XMLWordPrintable

    • GSoC 2019. Coding Phase 2

      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

       

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

              Created:
              Updated:
              Resolved: