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

String intern #2431

Closed
wants to merge 2 commits into from
Closed

String intern #2431

wants to merge 2 commits into from

Conversation

eybisi
Copy link
Contributor

@eybisi eybisi commented Mar 6, 2025

Strings are interned at various places. Additionally field "rawFullId" removed from MethodInfo instead its generated whenever it needed. I looked at usage of it and saw very few places. Removing it from heap might be more beneficial.

Fixes : #2430

eybisi added 2 commits March 6, 2025 18:14
Since these strings are long lived, they will be always in java heap.
Interning these will be like removing duplicate strings.
MethodInfo's rawFullId is a long string and rarely used. To use less
memory it can be created when needed
@skylot skylot closed this Mar 6, 2025
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.

[gui] Unnecessary memory usage with duplicate strings
2 participants