I'd be interested to see how yours works if you are willing to share it.
Edit: Plus one that is ~2x faster than Java by avoiding allocations [1].
[0] https://gist.github.com/jmikkola/6ac96ad6d6f66e772c33ec41ed2...
[1] https://gist.github.com/jmikkola/7ded8392226b7659c881f5540be...
I'd be interested to see how yours works if you are willing to share it.
Edit: Plus one that is ~2x faster than Java by avoiding allocations [1].
[0] https://gist.github.com/jmikkola/6ac96ad6d6f66e772c33ec41ed2...
[1] https://gist.github.com/jmikkola/7ded8392226b7659c881f5540be...