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

Improves performance by representing the LST using a Map instead of SymbolTable in IonManagedWriter_1_1. #854

Merged
merged 1 commit into from
May 14, 2024

Conversation

tgregg
Copy link
Contributor

@tgregg tgregg commented May 14, 2024

Description of changes:

Performance measured by https://github.com/amazon-ion/ion-java-benchmark-cli/tree/ion-1-1 using a 20MB binary Ion log file.

Before this PR:

236 ms / op

After this PR:

189 ms / op

If this can be made more Kotlin-idiomatic I'm open to it. We should also try making newSymbols a map if the newSymbols.indexOf lookup starts showing up in profiles.

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

@popematt popematt merged commit 27fe93e into ion-11-encoding May 14, 2024
16 of 17 checks passed
@tgregg tgregg deleted the ion-11-lst-map branch May 14, 2024 23:22
tgregg added a commit that referenced this pull request Jun 28, 2024
tgregg added a commit that referenced this pull request Sep 9, 2024
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