Details
-
Improvement
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
Description
Analysis of a freshly-booted SP edition indicates that there are ~6400 duplicates of String("QName") and ~5600 duplicates of String("Serializable"), wasting 720KiB of memory.
Deeper analysis shows that these come from duplicate objects returned from org.opendaylight.yangtools.binding.generator.util.Types.typeForClass().
Address this by instantiating a weakly-keyed, soft-valued cache of these objects.