Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
{refactor} rewrite string post-processing
This rewrite makes use of more regular expressions and more complex regular expressions but this complexity buys us a few things: First up, String#split is slow. Replacing those with regular expression tests improves our benchmark from 30k docs/sec to 33k docs/sec on my current device. Next up, by processing all escapes in a single go we can tie invalid escapes to their exact locations in the string. This makes it possible to highlight multiple errors in a single string in a useful manner.
- Loading branch information