Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prototype for unicode character parser (no API yet). #183

Merged
merged 7 commits into from
Dec 25, 2024
Merged

Conversation

renggli
Copy link
Member

@renggli renggli commented Dec 2, 2024

No description provided.

@renggli
Copy link
Member Author

renggli commented Dec 2, 2024

Regarding performance: it is mostly fastParseOn that suffers from the unicode character parser, not parseOn:

parseOn
-------
SingleCharacterParser              21.051μs [20.872μs; 21.230μs]
UnicodeCharacterParser (single)    29.786μs [28.004μs; 31.568μs]
                                   -41.586% [-50.249%; -32.923%]
UnicodeCharacterParser (surrogate) 39.743μs [39.516μs; 39.970μs]
                                   -88.881% [-90.784%; -86.979%]

fastParseOn
-----------
SingleCharacterParser              1.848μs [1.784μs; 1.913μs]
UnicodeCharacterParser (single)    8.512μs [8.327μs; 8.697μs]
                                   -362.589% [-375.351%; -349.828%]
UnicodeCharacterParser (surrogate) 8.729μs [8.388μs; 9.070μs]
                                   -375.337% [-398.632%; -352.042%]

@renggli renggli marked this pull request as ready for review December 25, 2024 13:49
@renggli renggli merged commit 0440cdd into main Dec 25, 2024
1 check passed
@renggli renggli deleted the unicode branch December 25, 2024 13:50
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.

1 participant