Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Avoid auto-boxing for gauge metrics #1526

Merged
merged 1 commit into from
Jun 5, 2019

Conversation

ajsutton
Copy link
Contributor

@ajsutton ajsutton commented Jun 5, 2019

PR description

Our gauge metrics were using Supplier<Integer>, Supplier<Long> and Supplier<Double> which require boxing and unboxing but we can use IntSupplier, LongSupplier and DoubleSupplier instead of to avoid the need for boxing (and also avoid the possibility of null being returned).

@ajsutton ajsutton merged commit efcde60 into PegaSysEng:master Jun 5, 2019
@ajsutton ajsutton deleted the reduce-boxing branch June 5, 2019 03:48
iikirilov pushed a commit to Puneetha17/pantheon that referenced this pull request Jun 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants