Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce argument allocations for checkArgument to reduce gc pressure. #104

Merged
merged 11 commits into from
Oct 16, 2024

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)

macfarla and others added 8 commits May 9, 2024 14:26
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
DNS Resolver - catch for all exceptions
* build - Fix NOTICE

* build - publish to GH Packages

* build - GH action to publish to GH packages

* build - Update check notice

* Update .github/workflows/publish.yml

Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>

* build - Update groupId

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
allocate more memory for ref tests task

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
* allocate more memory for ref tests task

---------

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Co-authored-by: Karim TAAM <karim.t2am@gmail.com>
Copy link

@ahamlat ahamlat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch.

@ahamlat
Copy link

ahamlat commented Oct 11, 2024

You will need to run spotless.

@macfarla
Copy link

@atoulme improvement for memory allocation - are you accepting PRs into this project?

@macfarla
Copy link

looks like the GPG signing key has expired @atoulme

@atoulme
Copy link
Member

atoulme commented Oct 14, 2024

I'll take a look.

cdivitotawela and others added 2 commits October 14, 2024 15:51
Existing gpg key has been expired and build fails. New key has been generated and updated. New key expires on 2026-10-14

Signed-off-by: Chaminda Divitotawela <cdivitotawela@gmail.com>
@david-ry4n
Copy link
Author

@atoulme would it be possible to get write access for me and a few others on this repo? Would like to get this change merged and be able to do releases when required.

@atoulme atoulme merged commit 8e7756e into tmio:main Oct 16, 2024
7 of 8 checks passed
@macfarla
Copy link

@atoulme this PR includes groupid change in build.gradle which is going to cause issues when publishing

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.

6 participants