Closed Bug 850536 Opened 12 years ago Closed 12 years ago

Performance improvement to FlattenSubstrings

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla22

People

(Reporter: h4writer, Assigned: h4writer)

References

Details

Attachments

(1 file)

I introduced FlattenSubstrings in #847682 . Looks like there is a small improvement possible over that implementation. This is a 8% improvement on "str92.replace(/\b\w+\b/g, '');". It has to concat a lot of matches and "stableStr->getChars(cx);" was showing in the profile. (I also added a small nit. rdata.dollar is the first occurence of "$" in rdata.repstr. Because we test rdata.repstr->length() == 0, rdata.dollar should also not be set)
Attached patch PatchSplinter Review
Assignee: general → hv1989
Attachment #724273 - Flags: review?(sstangl)
Blocks: 806646
Attachment #724273 - Flags: review?(sstangl) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: