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

fix(ilp): remove unnecessary object allocation #1794

Merged
merged 3 commits into from
Jan 18, 2022

Conversation

glasstiger
Copy link
Contributor

ReaderPool.releaseAll() used ConcurrentHashMap.EntryIterator.next() which allocates on the heap.
In case of a long running ILP connection this could have resulted in minor gc cycles from time to time.
Replaced it with ConcurrentHashMap.ValueIterator.next() which does not allocate.

@ideoma
Copy link
Collaborator

ideoma commented Jan 18, 2022

[PR Coverage check]

😍 pass : 3 / 3 (100.00%)

file detail

path covered line new line coverage
🔵 io/questdb/cairo/pool/ReaderPool.java 3 3 100.00%

@bluestreak01 bluestreak01 merged commit 0f1e88e into master Jan 18, 2022
@bluestreak01 bluestreak01 deleted the readerpool-mem-leak branch January 18, 2022 15:11
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.

None yet

3 participants