Improve performance of some string operations [SPR-16293] #20840
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:
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.
Backported to: 4.3.14