Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Regexp#match? over String#=~ when testing for null bytes
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 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. Co-authored-by: David Runger <david.runger@commonlit.org>
- Loading branch information