Skip to content

Reduce check argument args allocations#10

Merged
david-ry4n merged 3 commits intoConsensys:mainfrom
david-ry4n:reduce-checkArgument-args-allocations
Oct 14, 2024
Merged

Reduce check argument args allocations#10
david-ry4n merged 3 commits intoConsensys:mainfrom
david-ry4n:reduce-checkArgument-args-allocations

Conversation

@david-ry4n
Copy link
Copy Markdown

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
Copy Markdown

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
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 <simon.dudley@consensys.net>
siladu added a commit to besu-eth/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 <simon.dudley@consensys.net>
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 <simon.dudley@consensys.net>
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