Closed Bug 1499726 Opened 1 year ago Closed 1 year ago
make main-thread XHR timer setting slightly more efficient
Instead of creating a timer and then setting the timer's target, we can determine the timer's target and pass it in directly when the timer is created. This reordering of steps is slightly more efficient, since SetTarget() is both a virtual call and requires locking, both of which can be skipped if we know the target at timer creation time.
Attachment #9017863 - Flags: review?(amarchesini) → review+
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/706f1a7eae88 make main-thread XHR timer setting slightly more efficient; r=baku
You need to log in before you can comment on or make changes to this bug.