Closed
Bug 985179
Opened 10 years ago
Closed 10 years ago
Don't load Experiments.jsm unless service is enabled
Categories
(Firefox Health Report Graveyard :: Client: Desktop, defect, P4)
Firefox Health Report Graveyard
Client: Desktop
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: gps, Unassigned)
References
Details
I was looking at how the enabled flag works for Experiments and wanted to point out a performance implication. By having consulting of the enabled preference in Experiments.jsm, this means you always load Experiments.jsm and derived modules, even if the feature is disabled. This incurs a memory and application load time penalty and makes it more difficult to test the impact of enabling the experiments feature. (We don't do it currently, but in a perfect world we would have automation that enables/disables various Firefox features and attempts to isolate their resource impact.) A number of features (such as Sync and Firefox Health Report) consult the enabled preferences in the XPCOM service .js file and delay load JSMs until we know the service is enabled. In practice, this isn't a huge issue because experiments should always be enabled in desktop. But if we need to disable experiments in a channel, it could be problematic, as it will require a new build as opposed to a pref flip to isolate problematic code.
Comment 1•10 years ago
|
||
This should have been fixed around bug 993084.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Updated•6 years ago
|
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•