Open Bug 109205 Opened 24 years ago Updated 3 years ago

override the commandset for globalEditMenuItems and goUpdateSelectEditMenuItems

Categories

(MailNews Core :: Composition, defect)

x86
All
defect

Tracking

(Not tracked)

People

(Reporter: mscott, Unassigned)

Details

(Keywords: perf)

Currently every focus and select events triggers command updating for the following two command sets: goUpdateSelectEditMenuItems globalEditMenuItems this is because those commandsets are defined in utilityOverlay.xul and we (in mailnews) don't have any control over them. We recently made some huge performance wins in mailnews compose and in the 3-pane by creating custom events which we fire only when we want certain commands to be updated. These 2 command sets were the only 2 which couldn't be converted because they were defined outside of our control. I just discovered in Bug #108761, that it's possible to "override" those command sets with our own custom events by redefining the command set in an overly that gets brought in AFTER utilityOverlay.xul. We need to make the same change I made in 108761 to the compose window. this will remove the last of the unncessary command updating you still see. In particular: cmd_undo, cmd_redo, cmd_delete
keywords.
Keywords: nsbeta1, perf
-->varada
Assignee: ducarroz → varada
QA Contact: sheelar → stephend
Status: NEW → ASSIGNED
Keywords: nsbeta1nsbeta1+
Target Milestone: --- → mozilla0.9.9
Blocks: 122274
Keywords: nsbeta1+nsbeta1-
Target Milestone: mozilla0.9.9 → mozilla1.2
No longer blocks: 122274
taking all of varada's bugs.
Assignee: varada → sspitzer
Status: ASSIGNED → NEW
Product: MailNews → Core
sorry for the spam. making bugzilla reflect reality as I'm not working on these bugs. filter on FOOBARCHEESE to remove these in bulk.
Assignee: sspitzer → nobody
Filter on "Nobody_NScomTLD_20080620"
QA Contact: stephend → composition
Product: Core → MailNews Core
Target Milestone: mozilla1.2alpha → ---
if bug 108761 comment 9 is representative of what we can expect, this is only a 1% gain
Severity: normal → minor
(In reply to Scott MacGregor from comment #0) > Currently every focus and select events triggers command updating for the > following two command sets: > > goUpdateSelectEditMenuItems > globalEditMenuItems > ... > We need to make the same change I made in bug 108761 to the compose window. this > will remove the last of the unncessary command updating you still see. > In particular: > cmd_undo, cmd_redo, cmd_delete Aceman, is this still valid - that the work hasn't been done yet, and that the idea is not obsolete/actually needed?
Flags: needinfo?(acelists)
The mentioned functions still exist. But I'm not familiar with what the problem actually is here.
Flags: needinfo?(acelists)
AIUI, the desired performance result is bug 108761 comment 9, achieved in compose by overriding command sets goUpdateSelectEditMenuItems and globalEditMenuItems with custom events per attachment 57163 [details] [diff] [review], and thereby avoid unnecessary command updating on every focus and select events (assuming the later is still true) They seemed quite please with the results in bug 108761, although it is not clear from the bug "how much" was gained.
OS: Windows 2000 → All
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.