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

Implement fast paths for ASCII in unicode regexes #4

Open
osa1 opened this issue May 30, 2021 · 0 comments
Open

Implement fast paths for ASCII in unicode regexes #4

osa1 opened this issue May 30, 2021 · 0 comments
Labels
perf Related to runtime performance

Comments

@osa1
Copy link
Owner

osa1 commented May 30, 2021

Some of the search tables for built-in unicode regular expressions are quite large, but I think 99.9999% of the time they will match ASCII characters, so we should implement a fast path for that. For example, XID_Start currently makes 9 range comparisons to match a.

@osa1 osa1 added the perf Related to runtime performance label Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf Related to runtime performance
Projects
None yet
Development

No branches or pull requests

1 participant