Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
New
Description
See LUCENE-10128 for an example. The problem is there is only a sizeOf(long[]), so if the programmer uses shallowSizeOf instead of sizeOf then it falls back to shallowSizeOf(Object) which does a bunch of reflection.
This is pretty crazy because it can create performance traps. Should we just add a shallowSizeOf(long[]) that calls sizeOf(long[]), so that things are fast? (same for other primitive arrays). It would solve the problem easily I think.
Attachments
Issue Links
- links to