Steppschuh / Java-Markdown-Generator

Java library to generate markdown
MIT License
230 stars 47 forks source link

Improved padding performance #30

Open jkronegg opened 1 year ago

jkronegg commented 1 year ago

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

crakdelpol commented 7 months ago

why it's not merged yet?

jkronegg commented 7 months ago

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.