This change updates the null byte checking in the included exception strategy to scan for null bytes with Regexp#match?. It appears this will be 2.5x faster when parsing the data, which might be helpful given the overhead of running this on every request.
https://github.com/fastruby/fast-ruby#regexp-vs-regexpmatch-vs-regexpmatch-vs-stringmatch-vs-string-vs-stringmatch-code-
This change updates the null byte checking in the included
exception
strategy to scan for null bytes withRegexp#match?
. It appears this will be 2.5x faster when parsing the data, which might be helpful given the overhead of running this on every request.