Open
Bug 68375
Opened 24 years ago
Updated 2 years ago
lazily root the file,copy,fcc2,charset,tasks,etc menus in the datasources
Categories
(MailNews Core :: Backend, defect)
MailNews Core
Backend
Tracking
(Not tracked)
NEW
People
(Reporter: sspitzer, Unassigned)
References
Details
(Keywords: perf, Whiteboard: [patchlove])
Attachments
(2 files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
we should build up our generated file and copy menus *really* lazily.
We have several such menus in the three pane, stand alone window, and
one in compose.
Right now, we set the datasources for those menus on loading of the xul
(or they are hard coded in the xul, in the compose case), instead of
when the user clicks on the menu item or toolbar button.
I'm guessing it would speed up launch time for our windows, but would
slow down the response time the first time you click.
The one that is bugging me the most is the Fcc menu item in compose.
I'm glad is there, but I've never use it. Why should I pay for it every
time I create a message?
when we get to this, I'll probably need racham, ducarroz and some from i18n to
pitch in.
Reporter | ||
Comment 2•24 years ago
|
||
I think gayatrib fixed some of these problems in our search xul.
bhuvan was recently fixing the file/copy/pickers, he'd be a good person to fix.
re-assign to him.
Assignee: sspitzer → racham
Comment 3•23 years ago
|
||
I've got some JS that does this for the move/copy menus; does anyone have a
complete list or should I just search the XUL for datasources attributes?
Comment 4•23 years ago
|
||
This patch rebuilds the menu every time it is opened.
Without it the menu didn't appear to update after rename/create folder
operations.
Comment 5•23 years ago
|
||
This patch just builds the menu on the first open.
Reporter | ||
Comment 6•23 years ago
|
||
cavin has been testing the patch.
he writes: "ok, without the fix nsXULContentBuilder::Rebuild() gets called 8
times. with the fix it's 0 (and gets called when we try to use the menus
(move/copy msg, file msg)..."
cavin, was that with neils first patch, or the second one?
we definitely want this for perf and footprint.
one thing about setting a database manually, we have to remove it manually too.
Assignee: racham → cavin
Summary: lazily root the file,copy,fcc,charset etc menus in the datasources → lazily root the file,copy,fcc2,charset,tasks,etc menus in the datasources
Comment 7•23 years ago
|
||
Seth Spitzer wrote:
> one thing about setting a database manually, we have to remove it manually too.
You didn't remove it manually before...
Proposed Patch A can be modified to manually remove the database, but B can not.
Comment 8•23 years ago
|
||
> cavin, was that with neils first patch, or the second one?
>
It's the second one (ie=57005) I tried.
Comment 9•23 years ago
|
||
From my tests it seems to only save about 30-40 ms.
Updated•20 years ago
|
Product: Browser → Seamonkey
Comment 10•18 years ago
|
||
still worthy?
Comment 11•17 years ago
|
||
perf/footprint should be reevaluated after (at least) bug 68174 <messengercompose.xul> part lands...
Unless it would be obvious that we still do want the lazy version.
Assignee | ||
Updated•16 years ago
|
Product: Core → MailNews Core
Updated•8 years ago
|
Severity: normal → minor
Whiteboard: [patchlove]
Updated•2 years ago
|
Severity: minor → S4
You need to log in
before you can comment on or make changes to this bug.
Description
•