Closed
Bug 46802
Opened 24 years ago
Closed 24 years ago
startup load of nsprefm.dll could be avoided
Categories
(Core Graveyard :: Profile: Migration, defect, P4)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: bratell, Assigned: dbragg)
References
Details
(Keywords: memory-footprint, perf, Whiteboard: [nsbeta3+])
nsprefsm.dll is loaded at each start but normally doesn't do anything. Right now the whole dll is loaded because nsPrefConverter::ConvertPrefsToUTF8IfNecessary(void) is called and (except for the first time run) the only thing it does is the the following: NS_WITH_SERVICE(nsIPref, prefs, kPrefServiceCID, &rv); PRBool prefs_converted = PR_FALSE; prefs->GetBoolPref("prefs.converted-to-utf8",&prefs_converted); if (prefs_converted) return NS_OK; Couldn't that code be moved outside the dll? Maybe to somewhere near http://lxr.mozilla.org/seamonkey/source/profile/src/nsProfile.cpp#408 .
Reporter | ||
Comment 1•24 years ago
|
||
I think the dll gets unloaded when used, I hope I'm right, but fixing this would at least decrease startup time.
Reporter | ||
Updated•24 years ago
|
Summary: startup load of nsprefsm.dll could be avoided → startup load of nsprefm.dll could be avoided
Comment 2•24 years ago
|
||
This is also a footprint issue, we do *not* unload component libraries once loaded AFAIK. I'll take this, the suggested fix is right on and simple, no reason not to.
Assignee: dbragg → dveditz
Status: ASSIGNED → NEW
Keywords: footprint
Whiteboard: [nsbeta3-] → [nsbeta3+]
Fixed. Test for need to update to UTF8 now in nsProfile.cpp so nsprefm.dll or .so or .shlb, whatever will only be loaded if the prefs need to be changed to utf8.
Oops, Didn't mark fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 8•24 years ago
|
||
It works also. I tested with a current CVS debug build on Windows 2000 and nsprefm.dll is no longer loaded.
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
•