PaperMC/paper-api
Aikar 6a9c8c348b Performance & Concurrency Improvements to Permissions
Modifying of permissions was only half protected, enabling concurrency
issues to occur if permissions were modified async.

While no plugin really should be doing that, modifying operations
are not heavily called, so they are safe to add synchronization to.

Now, all modification API's will be synchronized ensuring safety.

Additionally, hasPermission was victim to a common java newbie mistake
of calling if (containsKey(k)) return get(k), resulting in 2 map lookups.

Optimized it to simply be a single get call cutting permission map
lookups in half.
2018-09-13 20:51:50 -04:00
..
src Performance & Concurrency Improvements to Permissions 2018-09-13 20:51:50 -04:00
.gitignore Convert project to Gradle 2020-12-10 20:50:33 -08:00
build.gradle.kts Allow plugins to use SLF4J for logging 2017-09-21 16:33:12 +02:00
LICENCE.txt We're GPL. 2011-01-02 10:57:42 +01:00