I discovered various issues with number handling (not including but related to #22) and along the way found lots of performance improvement opportunities. These include removing the numbers regexp, switching from string concatenation to strings.Builder and manually handling trim and to upper/lower operations.
By benchmarking the existing unit test suite I was able to measure speed improvements of 15x for snake/kebab and 20x for camel.
It was easier to send a single monolithic PR but happy to break it up if you prefer.
Thanks for this handy package.
I discovered various issues with number handling (not including but related to #22) and along the way found lots of performance improvement opportunities. These include removing the numbers regexp, switching from string concatenation to
strings.Builder
and manually handling trim and to upper/lower operations.By benchmarking the existing unit test suite I was able to measure speed improvements of 15x for snake/kebab and 20x for camel.
It was easier to send a single monolithic PR but happy to break it up if you prefer.