Skip to content

Conversation

@jkronegg
Copy link

@jkronegg jkronegg commented Mar 29, 2023

Replaced String concatenations by StringBuilder. This code is 2.5 faster than the original one (using JMH Benchmark on padding left/right/center of an empty String with 50 "-").

Solves #29

Replaced `String` concatenations by `StringBuilder`. 
This code is 2.5 faster than the original one (using JMH Benchmark on padding left/right/center of an empty String with 50 "-").
@crakdelpol
Copy link

why it's not merged yet?

@jkronegg
Copy link
Author

jkronegg commented Mar 7, 2024

why it's not merged yet?

There is no merge on this library since 2020, maybe the maintainer has new duties...
As an alternative, you could copy/paste the StringUtils class with the original package name : this will override the original class.

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