Closed
Bug 731389
Opened 13 years ago
Closed 13 years ago
Startup madness: loadLibsSetup is called twice
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 731341
People
(Reporter: kats, Unassigned)
Details
GeckoThread has the following code: GeckoAppShell.ensureSQLiteLibsLoaded(resourcePath); GeckoAppShell.loadGeckoLibs(resourcePath); Both of those functions call loadLibsSetup, which potentially does a bunch of file operations and could be expensive. Calling it twice probably hurts our startup time. The code flow here should be cleaned up so we only run the function once.
Reporter | ||
Updated•13 years ago
|
blocking-fennec1.0: --- → ?
Reporter | ||
Comment 1•13 years ago
|
||
See related bug; a refactoring to fix this should also fix that NPE.
See Also: → 731341
Comment 2•13 years ago
|
||
A first thing could be to figure out what part of loadLibsSetup is actually needed for loading the libs - there seems to be quite some Gecko setup in there that probably is unrelated to that.
Comment 3•13 years ago
|
||
Any idea of the scope of the startup win here? 10s of ms, 100s of ms? This would help understand if this blocks or not.
Comment 4•13 years ago
|
||
I'm fixing this in bug 731341. The win (for me at least) is 10s of ms, but I'm not on the worlds worst file system.
Comment 5•13 years ago
|
||
I should probably be clearer. I was seeing times in the range of 30-50 ms spent the first time these functions were called. I'm not sure what amount of time subsequent calls would take.
Comment 6•13 years ago
|
||
marking as a dup of 731341
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Updated•12 years ago
|
blocking-fennec1.0: ? → ---
Assignee | ||
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•