Skip to content

Avoid substring allocation in StringUtils.replace #24023

@jhoeller

Description

@jhoeller

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.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions