Skip to content

Conversation

@hasheniuk
Copy link
Contributor

Issue: SPR-16766
Cutting whitespaces once prevents calling System#arrayCopy on every deleted char. With using String#substring method it would be called just once.

@snicoll snicoll changed the title Improve performance of StringUtils#trimWhitespace SPR-16766 - Improve performance of StringUtils#trimWhitespace Apr 25, 2018
@jhoeller jhoeller merged commit 6545cab into spring-projects:master May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants