Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved padding performance #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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