Closed
Bug 14824
Opened 25 years ago
Closed 23 years ago
[Startup Performance] Defer loading bookmarks until UI has finished loading
Categories
(SeaMonkey :: Bookmarks & History, defect, P1)
SeaMonkey
Bookmarks & History
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla0.9.7
People
(Reporter: mozilla, Assigned: paulkchen)
References
Details
Attachments
(3 files, 3 obsolete files)
(deleted),
patch
|
paulkchen
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
paulkchen
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
paulkchen
:
review+
|
Details | Diff | Splinter Review |
Defer loading bookmarks.html until UI has finished loading. On the Mac, this
should shave off another second or so from the perceived startup time... the UI
will be displayed, and THEN we'll load in the bookmark file.
Reporter | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Priority: P3 → P2
Target Milestone: M11
Reporter | ||
Comment 1•25 years ago
|
||
Note: to get this to work, nsBookmarkService::Init() is changed to NOT call
ReadBookmarks(). Also, in navigator.js, at the end of the Startup() function, add
a SetTimeout() function for a half-second or so later (the timer will fire after
the UI has finished loading and laying out) which, when it fires, calls
ReadBookmarks(). Also had to make a small change to the bookmark's parsing code
to recurve on a node's children BEFORE adding the node itself into the graph so
that all "containment" issues are resolved properly.
Comment 2•25 years ago
|
||
That would be good. Will this ensure that the personal toolbar will just fillin
as we readin the bookmarks...
Reporter | ||
Comment 3•25 years ago
|
||
Yes.
Reporter | ||
Updated•25 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 4•25 years ago
|
||
Marking this as WONTFIX. A poll of various Mac-heads concluded that they prefer
having 100% of the chrome and its contents loaded in before the browser window
appears.
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 5•25 years ago
|
||
marking verified per engineer's last comments
reopening and taking this bug
Status: VERIFIED → REOPENED
Priority: P2 → P1
Resolution: WONTFIX → ---
Target Milestone: M11 → mozilla0.9.7
Argh, no, really, taking it this time, sorry for the spam.
Assignee: rjc → pchen
Status: ASSIGNED → NEW
Assignee | ||
Comment 10•23 years ago
|
||
Assignee | ||
Comment 11•23 years ago
|
||
Attachment #56310 -
Attachment is obsolete: true
Attachment #56312 -
Attachment is obsolete: true
Attachment #56314 -
Attachment is obsolete: true
Assignee | ||
Comment 12•23 years ago
|
||
Assignee | ||
Comment 13•23 years ago
|
||
Assignee | ||
Comment 14•23 years ago
|
||
Assignee | ||
Comment 15•23 years ago
|
||
showed diffs to rjc earlier, verbal r=rjc
Attachment #56355 -
Flags: review+
Attachment #56356 -
Flags: review+
Attachment #56357 -
Flags: review+
Comment 16•23 years ago
|
||
cool. sr=blake on those.
Assignee | ||
Comment 17•23 years ago
|
||
checked into trunk
Status: ASSIGNED → RESOLVED
Closed: 25 years ago → 23 years ago
Resolution: --- → FIXED
Comment 18•23 years ago
|
||
question, wouldn't a timeout of 0 still have the same effect (forcing the
window to show before loading the bookmarks)?
Reporter | ||
Comment 19•23 years ago
|
||
Paul, just thought of something. This change may have exposed a race condition
between when ReadBookmarks() is called via the timer firing from Startup(), and
the Bookmarks sidebar panel. You might want to test... and potentially add a
ReadBookmarks()s call and ___.rebuild() into the bookmark sidebar panel's
onload() function.
I'll reopen this bug.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 20•23 years ago
|
||
Please change the 100ms timeout to a 0ms timeout. That is sufficient to delay
until after the window shows, and prevents us from basically sitting around for
100ms doing nothing.
Comment 21•23 years ago
|
||
Leaks are up following this checkin.
Comment 22•23 years ago
|
||
yes...
it appears that nsBookmarksService::initDataSource(...) is called multiple
times... however, mInner is not released (if non-null) so previous instances
get leaked :-(
-- rick
Comment 23•23 years ago
|
||
Comment 24•23 years ago
|
||
We should change that to NS_IF_RELEASE(mInner).
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 25•23 years ago
|
||
leak was fixed in bugzilla 108539, marking fixed
Comment 26•23 years ago
|
||
>Please change the 100ms timeout to a 0ms timeout. That is sufficient to delay
>until after the window shows, and prevents us from basically sitting around
>for 100ms doing nothing.
New bug?
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•