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 is an expensive function, cpu wise. Hence putting it behind flag #210

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nikhildp
Copy link

@nikhildp nikhildp commented Apr 3, 2024

For jvms with bigger heapsize, String constant pool also can grow quite huge. This will cause latency in String.intern() call. This is a trade off between heap space vs execution time. For smaller jvms intern call can be still helpful. So putting the same behind flag as a tuning parameter

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.

1 participant