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

Optimizes membership checking for the MacroEvaluator Session's ExpansionInfo pool. #1030

Merged

Conversation

tgregg
Copy link
Contributor

@tgregg tgregg commented Jan 15, 2025

Description of changes:
Profiling showed significant time being spent in IdentityHashMap methods here. This PR proposes using a simple boolean check. I measured performance using ion-java-benchmark-cli over some real-world data containing many macro invocations.

Before: 311 ms/op
After: 269 ms/op (-13.5%)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@tgregg tgregg requested a review from popematt January 15, 2025 00:40
@tgregg tgregg merged commit 16b3cd0 into ion-11-encoding Jan 15, 2025
17 checks passed
@tgregg tgregg deleted the ion-11-encoding-optimize-expander-pool-check branch January 15, 2025 19:35
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.

2 participants