Open Bug 2002856 Opened 2 months ago Updated 2 months ago

[meta] Add fast path for global atom regexps

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

People

(Reporter: iain, Unassigned)

References

(Depends on 2 open bugs, Blocks 1 open bug)

Details

(Keywords: meta)

For global atom regexps like /a/g, operations like RegExpMatch and RegExpReplace can be more efficiently implemented as string search/replace with a little bit of extra code to update the last match. V8 and JSC appear to have some optimizations that take advantage of this, and have seen some nice improvements: for example, this V8 patch improved Jetstream2's WSL score by 50+%. We should add similar fast paths.

Depends on: 2002859
Depends on: 2002862
Severity: -- → N/A
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.