Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.3.3
-
None
-
None
Description
Currently, the estimation of the sizes of the caches that the CacheManager manages is not very accurate. The sizes of properties are estimated in PropertyState.calculateMemoryFootprint() to be 350 + values.length * 100. This is really bad when you have a lot of non-binary properties that are significantly larger than 100 bytes.
Proposed solution: Extend InternalValue and BlobFileValue with a much more accurate estimation of the retained memory and use this in PropertyState.calculateMemoryFootprint(). This would give a much better estimation of the retained size of the caches.