Closed Janiczek closed 1 year ago
Very nice!
Can we please add the benchmark to /benchmarks
and the oracle test to the tests?
(Also this is unrelated to this PR and something I intend to do a full pass on anyway, but it would help with confidence here is to convert the docs to doctests; essentially s/==/-->
).
Thanks @Janiczek!
This changes the implementation of String.Extra.isBlank from a regex-based one to a
String.trim
-using one.This benchmark shows improvement, at least in my Chrome:
Results show between 5x and 10x speed increase.
This test passes, comparing the output of the two functions: