Closed Bug 692832 Opened 15 years ago Closed 13 years ago

We seem to be doing lots of SQL at startup.

Categories

(Core :: SQLite and Embedded Database Bindings, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Yoric, Unassigned)

Details

(Keywords: perf, Whiteboard: [Snappy:P3])

Attachments

(3 files)

The attached dump lists SQL requests performed during startup (not necessarily by the main thread) with a reasonable profile. This list is impressively long. We should check, because this seems way too much.
Comment on attachment 566204 [details] A list of all SQlite requests executed at startup, sorted by database, based on a non-trivial profile - mobile version Is this any different if you use firstPaint instead of sessionRestored as your startup trigger? I'm confused why places isn't showing
Places is inited asynchronously by the first visit (or favicon) addition, so it's likely the measure stops too early. Just immediately later it is inited by the Star (that I'm trying to remove in bug 692120) I think session-restored may be fired before the UI is actually shown.
For the moment, I'm synchronizing on sessionstore-windows-restored. Which event do you suggest using?
I don't recall if browser-delayed-startup-finished fires before or after sessionstore-windows-restored, it may be worth a shot
Actually, I never see any notification of "browser-delayed-startup-finished". However, I attach the list until "places-init-complete".
(In reply to David Rajchenbach Teller [:Yoric] from comment #6) > Actually, I never see any notification of > "browser-delayed-startup-finished". That is... surprising! http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser.js#1723
btw, the second connection that you see here: Operations on "places.sqlite": 2 SELECT * FROM sqlite_master SELECT root_name, folder_id FROM moz_bookmarks_roots is what I'm removing in bug 692120, if only Ts_shutdown would not be stupid!
(In reply to David Rajchenbach Teller [:Yoric] from comment #4) > For the moment, I'm synchronizing on sessionstore-windows-restored. Which > event do you suggest using? I'd consider startup incomplete until sessionRestored and firstPaint has been set, see http://mxr.mozilla.org/mozilla-central/source/toolkit/components/startup/nsAppStartup.cpp#106 for firstpaint.
Do you have any information about the profile you used and what the testing procedure was, the extension manager DB accesses look to be us reloading all the extension data from install.rdf files. This would happen if we thought the timestamps on the extension's files had changed since the last run.
Whiteboard: [Snappy]
Whiteboard: [Snappy] → [Snappy:P3[
Whiteboard: [Snappy:P3[ → [Snappy:P3]
Activity has moved to a bunch of other bugs. Closing.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WONTFIX
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: