Closed Bug 1374836 Opened 8 years ago Closed 1 year ago

Hoist setDenseInitializedLength() out of a loop.

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: sstangl, Unassigned)

Details

(Keywords: triage-deferred)

Attachments

(1 file)

js::CreateRegExpMatchResult() calls setDenseInitializedLength() for each element at the time of insertion. Instead, it could just set the length before entering the insertion loop, resulting in tighter loops.
Attachment #8879739 - Flags: review?(evilpies)
I am not sure this is okay, if NewDependentString fails the memory might not get initialized.
Attachment #8879739 - Flags: review?(evilpies)
Keywords: triage-deferred
Priority: -- → P3
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: