Closed igr closed 3 years ago
@slandelle please see my benchmark
StringUtil_removeBenchmark.removeNew a thrpt 5 29089.686 ± 222.621 ops/ms
StringUtil_removeBenchmark.removeNew ba thrpt 5 24278.007 ± 145.268 ops/ms
StringUtil_removeBenchmark.removeNew cab thrpt 5 22196.510 ± 212.803 ops/ms
StringUtil_removeBenchmark.removeNew abcde thrpt 5 23367.545 ± 430.193 ops/ms
StringUtil_removeBenchmark.removeNew bcdefghaijklman thrpt 5 17268.509 ± 163.351 ops/ms
StringUtil_removeBenchmark.removeOld a thrpt 5 57116.090 ± 881.963 ops/ms
StringUtil_removeBenchmark.removeOld ba thrpt 5 40605.504 ± 463.230 ops/ms
StringUtil_removeBenchmark.removeOld cab thrpt 5 40103.663 ± 609.040 ops/ms
StringUtil_removeBenchmark.removeOld abcde thrpt 5 35670.546 ± 535.558 ops/ms
StringUtil_removeBenchmark.removeOld bcdefghaijklman thrpt 5 29990.477 ± 348.026 ops/ms
Am i doing something wrong?
@igr Sadly, it looks like the new strategy is only a win for large Strings. I think you can revert latest commit.
@igr Maybe I wasn't clear. The StringBuilderPool is definitely a good thing. Only this commit 99ad746ecd603e87587d0e1653a9aaf07952c07d wasn't.
I don't own the PR, otherwise I would have remove the wrong commit.
Closing this one and opening: https://github.com/oblac/jodd-util/pull/4
Codecov Report
93.18% <71.42%> (ø)
12.00 <2.00> (+1.00)
94.11% <94.11%> (ø)
6.00 <6.00> (?)
87.00% <94.44%> (+0.13%)
19.00 <8.00> (+1.00)
96.14% <100.00%> (ø)
517.00 <4.00> (ø)
0.00% <0.00%> (ø)
0.00% <0.00%> (ø%)
Continue to review full report at Codecov.