Java-Markdown-Generator icon indicating copy to clipboard operation
Java-Markdown-Generator copied to clipboard

Improved padding performance

Open jkronegg opened this issue 1 year ago • 2 comments

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

jkronegg avatar Mar 29 '23 12:03 jkronegg

why it's not merged yet?

crakdelpol avatar Mar 05 '24 15:03 crakdelpol

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.

jkronegg avatar Mar 07 '24 21:03 jkronegg