Skip to content

Conversation

@david-ry4n
Copy link

PR description

The checkArgument( boolean, String, ... ) causes a large number of Integer and int[] to be created temporarily on the heap which causes gc pressure. This PR adds overloads which reduces object allocations to 0 for these method calls.

Fixed Issue(s)

@CLAassistant
Copy link

CLAassistant commented Oct 14, 2024

CLA assistant check
All committers have signed the CLA.

@david-ry4n david-ry4n merged commit d891ee2 into Consensys:main Oct 14, 2024
8 checks passed
siladu added a commit to siladu/besu that referenced this pull request Feb 19, 2025
Includes:
- reduce check argument args allocations - Consensys/tuweni#10
which should reduce Integer and int[] and therefore gc pressure

Signed-off-by: Simon Dudley <[email protected]>
siladu added a commit to hyperledger/besu that referenced this pull request Mar 17, 2025
This replaces io.tmio/tuweni with the Consensys fork.

Also Includes:
- reduce check argument args allocations - Consensys/tuweni#10
which should reduce Integer and int[] and therefore gc pressure

Signed-off-by: Simon Dudley <[email protected]>
garyschulte pushed a commit to Consensys/optimism-besu that referenced this pull request Apr 17, 2025
This replaces io.tmio/tuweni with the Consensys fork.

Also Includes:
- reduce check argument args allocations - Consensys/tuweni#10
which should reduce Integer and int[] and therefore gc pressure

Signed-off-by: Simon Dudley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants