Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.20.203.0
-
None
-
None
Description
The Configuration constructor registers each instance in a WeakHashMap for reloading if a new default resource is added by way of Configuration.addDefaultResource(). Those configurations that don't declare that they load the defaults (an attribute that is only ever set in the constructor) could skip being registered.
This would deliver minor performance/memory improvements if anyone is creating many instances that don't read in default values. If this is not a common practise, it's not worth adding the fix (which would include making Configuration.loadDefaults final)