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

LibRegex: Cache 1 MiB worth of bytecode for each parser #1828

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alimpfard
Copy link
Contributor

While LibJS does cache regex literals, there's more than one way to
create regex objects, this cache is hit regularly just browsing the web,
though no real measurement has been done on its potential speedups.

This is just a convenience shortcut for *take(begin()->key).
@awesomekling
Copy link
Member

CI says ASAN no likey

@alimpfard
Copy link
Contributor Author

Huh. Will take a look.

While LibJS does cache regex literals, there's more than one way to
create regex objects, this cache is hit regularly just browsing the web,
though no real measurement has been done on its potential speedups.
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.

2 participants