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

perf: optimize RegExp usage in JS #19364

Merged
merged 7 commits into from
Jun 5, 2023

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Jun 4, 2023

Towards #19330

Shows about 1% improvement in the HTTP benchmark.

@bartlomieju bartlomieju marked this pull request as ready for review June 4, 2023 22:00
@bartlomieju bartlomieju requested a review from mmastrac June 4, 2023 22:28
Copy link
Contributor

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea how this can be faster but the numbers don't lie. LGTM!

@bartlomieju bartlomieju merged commit 21c2c01 into denoland:main Jun 5, 2023
@bartlomieju bartlomieju deleted the optimize_regexes branch June 5, 2023 08:52
@lino-levan
Copy link
Contributor

The V8 engine is a whimsical place, seemingly random changes can have surprising differences in performance.

bartlomieju added a commit that referenced this pull request Jun 8, 2023
Towards #19330

Shows about 1% improvement in the HTTP benchmark.
@Bamboozle-jpg
Copy link

The V8 engine is a whimsical place, seemingly random changes can have surprising differences in performance.

Yes

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.

4 participants