Improve performance of some string operations [SPR-16293] #20840
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Christoph Dreis opened SPR-16293 and commented
Hi,
while looking into some Spring-Boot performance improvements, I noticed several opportunities to speedup String operations in the Spring-Framework as well. Mostly, but not limited to excessive substring calls.
For the above case I did some JMH benchmarks:
Benchmark-Code
Benchmark-Results
Please note that this shows a case, where nothing has to be done. The case in which we really have to replace something still shows an improvement-factor of 3 to 4, though.
I hope the attached PR gets accepted and possibly merged back into 4.3.
Cheers,
Christoph
Affects: 4.3.13
Referenced from: pull request #1622, and commits 260ebec, d7959ed, 9d42184
Backported to: 4.3.14
The text was updated successfully, but these errors were encountered: