Closed Bug 731389 Opened 13 years ago Closed 13 years ago

Startup madness: loadLibsSetup is called twice

Categories

(Firefox for Android Graveyard :: General, defect)

All
Android
defect
Not set
normal

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.
blocking-fennec1.0: --- → ?
See related bug; a refactoring to fix this should also fix that NPE.
See Also: → 731341
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.
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.
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.
Depends on: 731341
See Also: 731341
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.
marking as a dup of 731341
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
No longer depends on: 731341
blocking-fennec1.0: ? → ---
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.