Closed Bug 699622 Opened 13 years ago Closed 10 years ago

Unpack extensions.sqlite from omni.jar when profile is created

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: vladan, Assigned: vladan)

References

Details

(Keywords: perf)

Attachments

(1 file)

To improve first run performance, we will be unpacking pre-created SQLite databases from omni.jar on profile initialization (see bug 691268).

This change extracts formhistory.sqlite from omni.jar when the database doesn't exist. The extracted DB contains the DB schema but no rows. If extraction fails for whatever reason, an error is logged and the DB is created from scratch as before.
Attachment #571816 - Attachment is patch: true
For mobile we don't create extensions.sqlite on startup so this will degrade Ts there
Blocks: 691268
Keywords: perf
Assignee: nobody → vdjeric
Attachment #571816 - Flags: review?(dtownsend)
(In reply to Dave Townsend (:Mossop) from comment #1)
> For mobile we don't create extensions.sqlite on startup so this will degrade
> Ts there

But then XPIDatabase.openConnection() would never be called on mobile so we would never extract the DB from omni.jar. It's on the same path as DB creation.
Comment on attachment 571816 [details] [diff] [review]
Code for unpacking the DB when profile is created

With all the changes lately we'll need a new patch here. I'd really like to see a conclusion in bug 699615 first though.
Attachment #571816 - Flags: review?(dtownsend)
this db doesn't exist anymore
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: