Nursery allocate short life span RegExp object.

NEW
Unassigned

Status

()

Core
JavaScript Engine
2 years ago
2 years ago

People

(Reporter: arai, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox47 affected)

Details

(Reporter)

Description

2 years ago
Derived from bug 887016.

Currently RegExp object can only be allocated with NewObjectKind==TenuredObject.
Allocating short life span RegExp object in Nursery will improve performance.

in bug 887016's patch, it improves 10% when calling String.prototype.match/search with pattern string with meta char (like str.match("a+")), that allocates temporary RegExp object.  This case seems to be rare, as it doesn't appear in octane/regexp, so this won't block bug 887016 for now.

of course there will be more applicable cases :)
You need to log in before you can comment on or make changes to this bug.