Closed Bug 110355 Opened 23 years ago Closed 23 years ago

Regression in new mail compose window time caused by an 11/14 checkin

Categories

(MailNews Core :: Composition, defect)

x86
Windows 2000
defect
Not set
blocker

Tracking

(Not tracked)

VERIFIED WORKSFORME

People

(Reporter: mscott, Assigned: bugzilla)

References

()

Details

(Keywords: perf, regression)

Attachments

(4 files)

According to stephend, the time it takes for a new compose window almost quadrupled in last nights builds. I think this is considered a stopper until we at least understand what checkin caused the regression. Here is what I've found so far. This was Win98, PII 266, 128 megs of RAM. BUILD DATE Reply All/5 rcps 12 13 14 15 --------------------------------------------------- 1st window 4.10 5.06 4.02 7.49 2nd window 2.91 2.83 2.89 7.61 3rd window 2.89 2.85 2.87 7.68 Indeed, this is critical. What is going on? I'm going to start looking for checkins that might have caused this.
marking smoketest. I think we should at least understand what checkin is killing us before we open the tree. We probably aren't the only window that's slower.
Severity: normal → blocker
Keywords: smoketest
Is this html compose, plaintext, or both?
Stephen is planning to add the individual window startup time logs so that we can spot the portion that is causing this increase.
My checkin added a new JS file (editorUtilities.js) that loads with editorOverlay.xul. It is a very likely culprit. I'm investigating if we avoid loading this in HTML Compose
another possibility is the smime overlay which is getting loaded with the compose window. but that overlay is pretty small (just adds 3 menu items to the Options menu).
Keywords: perf, regression
QA Contact: sheelar → stephend
FYI: We have also bug 110340
Keywords: perf, regression
QA Contact: stephend → sheelar
Keywords: perf, regression
QA Contact: sheelar → stephend
Ok, I don't think all the editing commands will work correctly without loading editorUtilities.js, but this patch will allow you to start the Mail Compose window without it, and thus test if it is the cause of the increased time to load. I really don't see how this could cause such a pronounced difference. Can one more JS file really cause that?
the problem is apparently during the first part when the window is loaded (new window). the time jump from 2.7s to 5.6 for the first window and from 1.1 to 5.8 for the following one! Looks like the xul cache is off.
By experience, I would say that adding this JS file should not be the culprit, especially it does not do much when it's loaded. Also, that would not explain why the second window is slow as well. Adding JS doesn't not help performance but it does not add couple second to the load time, should be more in the 1/10 of sec per 10K of JS.
I went down to the slow machine in the QA lab and by hand "backed out" the chrome registration code I added last night to mail.jst to register messenger-smime chrome and load the overlay with the compose window. We still saw the slow down on that release build when bringing up the compose window. The overlay didn't appear to be getting loaded anymore and it was still slow. However, I'd still be willing to back it out on the trunk, then have release repackage a windows build so we can see if that makes a difference. Grasping at straws but I'm willing to try.
I just backed out my packaging changes to: mozilla\xpinstall\packager\windows\mail.jst AND ns\xpinstall\packager\windows\mail.jst Loan's going to repackage a windows build with this change so we can see if this makes a difference.
Win32 respin is running now. Loan
Why are we keeping the tree closed for a performance regression that doesn't block anyone from testing anything!!!?!???
I'm hoping johnny's just being funny. Please read my email in response to yours about what's important for mozilla and netscape right now. thanks!
Nothing on bonsaii is really jumping out at me. I agree with Charlie and JF that adding his new editorUtilties.js file shouldn't be capable of slowing down new compose as drastically as it is being slowed down.
I checked in a small change to plaintext rewrap, but if this is showing up in html compose as well, then it couldn't be that.
The slowdown is before we execute the onload handler, therefore before we initialize the editor mode!
With the respin build (2001-11-15-14), we're fine... 0[7b1eb0]: -------------------- 0[7b1eb0]: [ 0][ 0] - Start opening the window, message size = 2941 0[7b1eb0]: [ 2203][ 2203] - Start initializing the compose window (ComposeLoad) 0[7b1eb0]: [ 2314][ 111] - Done with the initialization (ComposeLoad). Waiting on editor to load about:blank 0[7b1eb0]: [ 2890][ 576] - Editor is done loading about::blank. Now let mime do its job 0[7b1eb0]: [ 2968][ 78] - done with mime. Lets update some UI element 0[7b1eb0]: [ 3891][ 924] - addressing widget, windows title and focus are now set, time to insert the body 0[7b1eb0]: [ 4051][ 160] - Finished inserting data into the editor. The window is finally ready! 0[7b1eb0]: -------------------- 0[7b1eb0]: [ 0][ 0] - Start opening the window, message size = 2941 0[7b1eb0]: [ 1127][ 1127] - Start initializing the compose window (ComposeLoad) 0[7b1eb0]: [ 1216][ 89] - Done with the initialization (ComposeLoad). Waiting on editor to load about:blank 0[7b1eb0]: [ 1755][ 540] - Editor is done loading about::blank. Now let mime do its job 0[7b1eb0]: [ 1811][ 55] - done with mime. Lets update some UI element 0[7b1eb0]: [ 2703][ 893] - addressing widget, windows title and focus are now set, time to insert the body 0[7b1eb0]: [ 2861][ 158] - Finished inserting data into the editor. The window is finally ready! 0[7b1eb0]: -------------------- 0[7b1eb0]: [ 0][ 0] - Start opening the window, message size = 2941 0[7b1eb0]: [ 1132][ 1132] - Start initializing the compose window (ComposeLoad) 0[7b1eb0]: [ 1222][ 90] - Done with the initialization (ComposeLoad). Waiting on editor to load about:blank 0[7b1eb0]: [ 1757][ 535] - Editor is done loading about::blank. Now let mime do its job 0[7b1eb0]: [ 1813][ 56] - done with mime. Lets update some UI element 0[7b1eb0]: [ 2715][ 902] - addressing widget, windows title and focus are now set, time to insert the body 0[7b1eb0]: [ 2873][ 157] - Finished inserting data into the editor. The window is finally ready!
new builds are out and we're back to our usual times of roughly 2.8s for the 2nd window and 4s for the first. marking fixed.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Could this have cause bug 110478 ?
Re-opening. I still see this on Win2k and Linux builds from 2001-11-16, with a new profile. Yesterday when Scott and I looked at this, we installed in a new directory, and this worked fine (the results that I posted). Creating a new profile on the current directory still shows the slowness, but using the same profile with a build installed in a new directory works fine. I tried deleting the xul.mfl, but to no avail.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
taking off the list. I don't see the slow down like I did in yesterdays build so I don't think it's as prevelant as it was yesterday. We'll work with Stephen to figure out the exact scenario under which he sees it.
Keywords: smoketest
Okay, for some reason the installed-chrome.txt wasn't getting replaced. IE, using the same builds, with the same profile, but in different directories (one was installed over an older build which had the problem, the other was installed in a brand new C:\Foo directory), we get different results. The 16th build installed over the 15th build still had the faulty menu and the perf degredation, yet the one installed in a new directory C:\Foo worked fine with regard to performance and menus. Seems like the installer should be replacing installed-chrome.txt, no?
Glad to see this has been reopened. As the person who originally mentioned the noticeable slowdown to stephend, I came here to say that it still feels much slower than it used to in an 11/16 nightly. I use compose every day, obviously, and I'd say the time to open the compose window is still approximately double what it used to be, so I think we should keep the pressure on fixing this bug.
could this be related to seth's caching/hiding composer window change, which should of brought down the opening window times..
which should be cached on a second window, maybe the check-in is not factoring this in, or getting cached by seth's code, or even possibly going around it.
No, that is not possible. The code observes the max_recycled_windows pref value and works accordingly. The pref, even if in some .js (all.js?) file has been set to 0, which disables the feature.
Marking worksforme. This was actually fixed when Scott re-landed his fix for S/MIME's chrome... We're back to normal now.
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → WORKSFORME
Verified, we're back down to pretty much normal now.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: