Closed Bug 1648391 Opened 5 years ago Closed 5 years ago

nsTSubstringTuple<T>::IsDependentOnWithLength is suboptimal

Categories

(Core :: XPCOM, task)

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: sg, Assigned: sg)

Details

Attachments

(2 files)

nsTSubstringTuple<T>::IsDependentOnWithLength unnecessarily evaluates dependency for all nodes, but can stop to do so once one branch is dependent.

Pushed by sgiesecke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b204ac2decb6 Use logical or rather than binary or to allow for short-circuit evaluation. r=froydnj https://hg.mozilla.org/integration/autoland/rev/fdd9ea55b4ad Use rhs-first optimization from IsDependentOn in IsDependentOnWithLength. r=froydnj
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: