Open Bug 1245025 Opened 5 years ago Updated 5 years ago
Nursery allocate short life span Reg
Exp object .
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.