Skip to content

Conversation

@donatj
Copy link
Member

@donatj donatj commented Apr 15, 2025

This optimizes the parser by iterating one grapheme at a time rather than exploding into runes. The real difference is negligible on small sets, but it's a little better.

The bigger fix here is this adds escaping quotes ala 'foo."bar\"baz" => [ 'foo', 'bar"baz' ]

@donatj donatj changed the title WIP Improve Efficiency and Safety Apr 15, 2025
@donatj donatj marked this pull request as ready for review April 15, 2025 17:45
@donatj donatj requested a review from henderjon April 15, 2025 17:45
@donatj donatj merged commit 9f277f1 into master Apr 15, 2025
18 checks passed
@donatj donatj deleted the rewrite branch April 15, 2025 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants