RFR: 7979: Reduce allocation rate in ParserStats

Jean-Philippe Bempel jpbempel at openjdk.org
Wed Nov 23 20:44:00 UTC 2022


On Wed, 23 Nov 2022 19:31:59 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> > As we are in 9 branch, could we consider including a lib like fastutil for dealing better with primitives collections?
> 
> Long time ago, when most people had 32-bit OS, I experimented with storing JMC values in primitive arrays, mostly to reduce memory. Problem was when values needed to be visualized in a table. You either had to implement sorting, filtering, formatting etc. for every type or convert it to Object/Comparable. If you converted it to an object, the GUI became sluggish when processing values in the table. Today there are better garbage collectors etc. but it may be interesting to know.

Thanks for the input!

-------------

PR: https://git.openjdk.org/jmc/pull/455


More information about the jmc-dev mailing list