Closed superfell closed 3 years ago
This changes the regex code to use the regex methods that take bytes instead of strings, saving the string allocation.
I don't have a test file as large as yours, but for mine this reliably dropped runtime from ~1.5 seconds to ~1.1 seconds when using regexes.
This changes the regex code to use the regex methods that take bytes instead of strings, saving the string allocation.
I don't have a test file as large as yours, but for mine this reliably dropped runtime from ~1.5 seconds to ~1.1 seconds when using regexes.