Bukkit/spigot permission system hangs plugin initialization the more plugins installed and the more permissions inside the plugin.yml

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None

      Quite a big issue on my hands in relation to how spigot checks permissions.

      https://github.com/Borlea/EchoPet/issues/8

      Plugins hang pre-startup initialization the more plugins you have installed and the more permissions inside the plugin.yml that try to get injected. With EchoPet in my case, it adds over 2,000 permissions and hangs start-up by ~15 seconds. Removing all permissions inside the plugin.yml, initialization becomes near instant.

      Can the permission system be fixed or optimized to not hang initialization based on how many plugins are used and how many permissions are available inside the plugin.yml? As with the more plugins and permissions, the longer individual initializations hang.

      For reference.
      https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/browse/src/main/java/org/bukkit/permissions/Permission.java#209

            Assignee:
            Unassigned
            Reporter:
            mibby mibster
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: