Closed
Bug 1374753
Opened 9 years ago
Closed 9 years ago
Can we avoid initializing RDF during startup?
Categories
(Core Graveyard :: RDF, defect)
Core Graveyard
RDF
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: florian, Unassigned)
References
Details
browser_startup.js shows:
services loaded before profile selection: @mozilla.org/rdf/rdf-service;1
We create this service at http://searchfox.org/mozilla-central/rev/2bcd258281da848311769281daf735601685de2d/dom/xul/templates/nsXULContentUtils.cpp#81 from http://searchfox.org/mozilla-central/source/layout/build/nsLayoutStatics.cpp#208
Relevant part of the stack:
nsXULContentUtils::Init() + 34 (nsXULContentUtils.cpp:82)
nsLayoutStatics::Initialize() + 167 (nsLayoutStatics.cpp:209)
Initialize() + 56 (nsLayoutModule.cpp:328)
Comment 1•9 years ago
|
||
From a quick look, almost the only consumers of nsXULContentUtils are templates. I'm *fairly* sure nothing in the Fx frontend uses rdf templates these days. Excluding that code, we're left with:
https://dxr.mozilla.org/mozilla-central/search?q=nsxulcontentutils+-path%3Atemplate&redirect=false
- the init/finish code in nsLayoutStatics.
- 2 hits in dom/xul/XULDocument.cpp :
1650 rv = nsXULContentUtils::SetCommandUpdater(this, aElement);
3699 nsXULContentUtils::FindChildByTag(aElement, kNameSpaceID_XUL,
neither of which use RDF.
- the implementation of nsXULElement::GetResource(), which uses it as a shortcut to get to the rdf service (to talk to it directly) in the first place.
I'll see if I can find time to work out a patch tomorrow (and/or see what else inits rdf still).
Flags: needinfo?(gijskruitbosch+bugs)
See Also: → 335000
Comment 2•9 years ago
|
||
So the tl;dr is that this doesn't seem to be trivial to do. The #include in Init() actually causes some common (child, folder, open, true -- but somehow not closed or false!) rdf resources/literals to be pre-cached by the rdf service. While we could postpone doing that until first use (maybe? it also 'undefines' them when Finish() is called...), the add-on manager will also initialize RDF gunk, so postponing it won't last long while there are other consumers.
Flags: needinfo?(gijskruitbosch+bugs)
Comment 3•9 years ago
|
||
Resolving as WONTFIX based on Gijs' comments, instead of triaging this.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•