Closed
Bug 725858
Opened 13 years ago
Closed 13 years ago
Don't load sqlite for profile migration unless we're actually migrating a profile
Categories
(Firefox for Android Graveyard :: General, defect)
Firefox for Android Graveyard
General
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 13
People
(Reporter: wesj, Assigned: wesj)
Details
Attachments
(1 file, 1 obsolete file)
2.82 KB,
patch
|
gcp
:
review+
|
Details | Diff | Splinter Review |
I'm seeing the setup screen appear in Fennec, even though I have no previous profile on my device. There's two places I see us doing work we don't need. First, my brilliant GeckoDirProvider is creating a profile for us, even if we don't have or need one, which means we always think we have a profile.
Secondly, I'm seeing a lot of time spent in ensureSqliteLibsLoaded even though we aren't doing a migration. We'll do this on every startup, so we should delay and only do it if we know there's a data to migrate.
Patch for the second coming. I avoided offering the first option earlier because its a little tricky I think...
Assignee | ||
Comment 1•13 years ago
|
||
This cuts the migration time from 500-100ms to around 3ms for me (to be fair I only saw 500 once). I assume we're hitting it every time, which is why I constantly see the startup splash fly by for a second I assume.
Assignee: nobody → wjohnston
Attachment #595892 -
Flags: review?(gpascutto)
Assignee | ||
Comment 2•13 years ago
|
||
Dang it wrong patch. One sec...
Assignee | ||
Comment 3•13 years ago
|
||
I moved these timers outside the getProfileDir loop so that we could also include it in our measured time here (although its very small for me...).
Attachment #595892 -
Attachment is obsolete: true
Attachment #595892 -
Flags: review?(gpascutto)
Attachment #595895 -
Flags: review?(gpascutto)
Updated•13 years ago
|
Attachment #595895 -
Flags: review?(gpascutto) → review+
Assignee | ||
Comment 4•13 years ago
|
||
Assignee | ||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 13
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
•