HomePhorge
Diffusion guam 1b203d8d6cab

Small performance improvements for splitting

Description

Small performance improvements for splitting

Compiling the pattern gives us a ~20% performance boost for large split
operations (literal with CRLF).
Not using split_binary seems to perform more consistently (and is
recommended by the erlang performance guide).

I attempted to use binary:split again, but only managed to create a more
complicated, and barely faster solution. Split itself is super fast (factor of 10), but
we subsequently have to reattach CRLF's, which eats up all of the wins
(It's not clear why binary:split can't split without loosing the
separator, but that's seems like it is).

Details

Provenance
mollekopfAuthored on Oct 28 2020, 9:53 AM
mollekopfPushed on Oct 28 2020, 11:21 AM
Parents
rGfb9f5ee08d73: Cleanup
Branches
Unknown
Tags
Unknown
References
tag: 0.9.8
Build Status
Buildable 31606