-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b03
return permsMap.computeIfAbsent(c,
new java.util.function.Function<>() {
@Override
public PermissionCollection apply(Class<?> k) {
...
}
}
This adds an allocation and some overhead to each call.
This block also adds some very slight startup and footprint overheads, since we create an extra anonymous class, and we take this overhead unconditionally (whether a SM is installed or not).
By refactoring so that we avoid computeIfAbsent on the fast path, we can fix both issues.