spring-projects/spring-framework — pull request #562 by hengyunabc (2014-06-13 11:09:32+00:00)
Title: StringUtils.trimAllWhitespace(String str) is slow.

StringUtils.trimAllWhitespace(String str) is slow.
Using sb.deleteCharAt(index) is not a good idea, it will call
System.arraycopy(value, index+1, value, index, count-index-1);

Test:
https://gist.github.com/hengyunabc/a4651e90db24cc5ed29a

I have signed and agree to the terms of the SpringSource Individual
Contributor License Agreement.