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

[Performance] Use interner to de-duplicate strings #164

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

saraadams
Copy link
Collaborator

@saraadams saraadams commented Dec 20, 2023

When reading the profile, many strings are encountered multiple times. Use String.interner() to reduce the memory requirements of running the analyzer.

Benchmark with a Bazel profile of unzipped size 357MB Using YourKit as a profiler and checking the shallow size just before generating the suggestions:

Before: 692 MB
After: 349 MB

Progress on #163

When reading the profile, many strings are encountered multiple
times. Use `String.interner()` to reduce the memory requirements
of running the analyzer.

Benchmark with a Bazel profile of unzipped size 357MB
Using YourKit as a profiler and checking the shallow size just before generating
the suggestions:

Before: 692 MB
After:  349 MB

Signed-off-by: Sara Adams <[email protected]>
@saraadams saraadams requested review from WillEngFlow and removed request for WillEngFlow December 20, 2023 20:34
@saraadams saraadams merged commit 8019030 into main Dec 20, 2023
3 checks passed
@saraadams saraadams deleted the sara-use-interner branch December 20, 2023 21:52
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