Talos Ts regressions from bug 769960 (SafeBrowsing.jsm refactor)

RESOLVED FIXED in Firefox 17



7 years ago
5 years ago


(Reporter: mbrubeck, Assigned: Dolske)


({perf, regression})

17 Branch
Firefox 17
perf, regression

Firefox Tracking Flags

(firefox17+ fixed)


(Whiteboard: [ts][leave open])


(1 attachment)



7 years ago
It looks like bug 769960 regressed Ts Paint and Ts MAX/MED Dirty Profile benchmarks by 3% to 6% on all desktop platforms, and also made the results noisier, e.g.:

Did we accidentally move some code to run before startup that used to run after startup?


7 years ago
tracking-firefox17: ? → +

Comment 1

7 years ago
Hmm, yeah, this did move some code to run earlier than it did before.

The pre-refactoring code (take a deep breath) used a <script> in browser.xul, which added a |load| event listener, which in turn added a 2 second setTimeout, which in turn finally did the actual init. See (now deleted) sb-loader.js.

The refactored code simply init()s in gBrowserInit._delayedStartup(). Which instead of 2 seconds after |onload|, is 1 event-loop spin. Some of this regression / noise may be due to us writing to a DB to add the Mozilla test entries:


Lots of (existing) clownshoes in this code. Sigh.

Let me look at removing addMozEntries(). Failing that, we can go back to cheating by initializing after another 2 seconds.
QA Contact: dolske

Comment 2

7 years ago
Assuming that dolske meant to take this!
Assignee: nobody → dolske
QA Contact: dolske

Comment 3

7 years ago
Filed bug 779008 for the DB clownshoes. It's existing, needs a bit of thought, and it just one of many undesirable things with Safe Browsing.

So I'm just going to fix this regression by bumping the init() to occur later, as the original code did.

Comment 4

7 years ago
Created attachment 647375 [details] [diff] [review]
Patch v.1

This restores init timing to what it was pre-refactor.
Attachment #647375 - Flags: review?(gavin.sharp)
Comment on attachment 647375 [details] [diff] [review]
Patch v.1

Attachment #647375 - Flags: review?(gavin.sharp) → review+

Comment 6

7 years ago

We'll probably want to watch numbers for a bit after landing to verify that it's indeed fixed.
Whiteboard: [ts] → [ts][leave open]

Comment 8

7 years ago

Looks like this fixed it. Noise is gone, and Ts is actually a little lower than it was before!
Last Resolved: 7 years ago
Resolution: --- → FIXED


7 years ago
status-firefox17: --- → fixed
Target Milestone: --- → Firefox 17
Component: Phishing Protection → Phishing Protection
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.