RFR: 7979: Reduce allocation rate in ParserStats

Jean-Philippe Bempel jpbempel at openjdk.org
Wed Nov 23 19:16:33 UTC 2022


On Mon, 21 Nov 2022 09:45:32 GMT, Richard Startin <duke at openjdk.org> wrote:

> Somewhat surprisingly, the capturing lambdas and the `Long`s being updated here are one of the highest allocation sources when using jmc-common as a backend library, this PR has reduced our allocation rate by about 5%.

Thanks, LGTM

As we are in 9 branch, could we consider including a lib like fastutil for dealing better with primitives collections?

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

Marked as reviewed by jpbempel (Committer).

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


More information about the jmc-dev mailing list