Skip to content

String intern is an expensive function, cpu wise. Hence putting it behind flag#210

Open
nikhildp wants to merge 2 commits intoatomikos:masterfrom
nikhildp:feature/intern-behind-flag
Open

String intern is an expensive function, cpu wise. Hence putting it behind flag#210
nikhildp wants to merge 2 commits intoatomikos:masterfrom
nikhildp:feature/intern-behind-flag

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

@nikhildp nikhildp force-pushed the feature/intern-behind-flag branch from 30cac53 to 272aee0 Compare April 3, 2024 05:40
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