-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
None
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
There are a lot of duplicate instances of ModuleDescriptor$Version in medium-size project, which waste memory
According to a profiler in a project with several hundred jars (more than half of them have the same version) there are several thousands instances if ModuleDescriptor$Version, each using 208 bytes, most of them are duplicates
Therefore, the total waste amounts to about a megabyte
interestingly, there is a deduplication mechanizm in jdk.internal.module.Builder#version, but as I understans it applies only to system jars
There are a lot of duplicate instances of ModuleDescriptor$Version in medium-size project, which waste memory
According to a profiler in a project with several hundred jars (more than half of them have the same version) there are several thousands instances if ModuleDescriptor$Version, each using 208 bytes, most of them are duplicates
Therefore, the total waste amounts to about a megabyte
interestingly, there is a deduplication mechanizm in jdk.internal.module.Builder#version, but as I understans it applies only to system jars