Closed Bug 1644163 Opened 5 years ago Closed 5 years ago

Avoid traversing a nsTSubstring tuple twice to determine its length and dependency on a buffer

Categories

(Core :: XPCOM, task)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: sg, Assigned: sg)

Details

Attachments

(3 files)

In Append, Assign, and Replace called with a substring_tuple_type argument, the tuple tree is traversed twice to determine the tuple length and whether the tuple depends on the buffer of the target substring. Both properties can be determined in a single go.

Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/338bd5525594 Avoid traversing a nsTSubstring tuple twice to determine its length and dependency on a buffer in Append. r=froydnj https://hg.mozilla.org/integration/autoland/rev/8d78185301f1 Avoid traversing a nsTSubstring tuple twice to determine its length and dependency on a buffer in Assign. r=froydnj https://hg.mozilla.org/integration/autoland/rev/954c49edcc76 Avoid traversing a nsTSubstring tuple twice to determine its length and dependency on a buffer in Replace. r=froydnj
Pushed by csabou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1e48f3461fa1 Avoid traversing a nsTSubstring tuple twice to determine its length and dependency on a buffer in Append. r=froydnj https://hg.mozilla.org/integration/autoland/rev/be540a7e5c81 Avoid traversing a nsTSubstring tuple twice to determine its length and dependency on a buffer in Assign. r=froydnj https://hg.mozilla.org/integration/autoland/rev/d5a00352bfba Avoid traversing a nsTSubstring tuple twice to determine its length and dependency on a buffer in Replace. r=froydnj

Relanded this as the failure was actually Bug 1645415. Sorry for the trouble.

Flags: needinfo?(sgiesecke)
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
Component: String → XPCOM
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: