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

Avoid substring allocation in StringUtils.replace #24023

Closed
jhoeller opened this issue Nov 19, 2019 · 0 comments
Closed

Avoid substring allocation in StringUtils.replace #24023

jhoeller opened this issue Nov 19, 2019 · 0 comments

Comments

@jhoeller
Copy link
Contributor

@jhoeller jhoeller commented Nov 19, 2019

Our heavily used StringUtils.replace implementation temporarily allocates String instances from String.substring calls which can easily be avoided by using the corresponding StringBuilder.append variants.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.