Mail slow to open or close with large IMAP INBOX

RESOLVED WORKSFORME

Status

MailNews Core
Database
RESOLVED WORKSFORME
15 years ago
10 years ago

People

(Reporter: D. J. Hagberg, Assigned: Bienvenu)

Tracking

({perf})

Trunk
PowerPC
Mac OS X

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

15 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3.1) Gecko/20030425
Build Identifier: http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.5/mozilla-mac-MachO-1.5.dmg.gz

With Mozilla 1.5 and recent 1.4.x builds, I am seeing a very slow opening time
for the Mail window.  It currently takes 65+ seconds at nearly 100% CPU (on 1GHz
PPC) between the time I choose Window -> Mail & News and when the login/password
dialog appears.  Once I enter my login/password, performance is reasonable until
I attempt to exit Mozilla (Mozilla -> Quit), where it again consumes 100% CPU
for at least 30 seconds.

With Mozilla 1.3.1 and earlier, the time between choosing Window -> Mail & News
and the username/password prompt is less than 1 second.

One item of note -- it appears that when Mozilla exits, a file
~/Library/Mozilla/Profiles/PROFILENAME/PROFILEID/ImapMail/SERVERNAME/INBOX.msf
is written as the last thing.  On my system, this file is over 350k.  Is this
being parsed by JavaScript or using an algorithm that scales poorly according to
mailbox size?

Reproducible: Always

Steps to Reproduce:
1. Construct an IMAP INBOX with at least 500 entries.
2. Start Mozilla 1.5 and configure to use this IMAP server account
3. Exit Mozilla
4. Start Mozilla again and open the Mail & News window, note the opening time.
5. Exit Mozilla, note the time it takes the process to exit.

Actual Results:  
Step 4 takes at least 65+ seconds of wall clock time, over 40 seconds of CPU time.
Step 5 takes at least 30 seconds of wall clock time, over 20 seconds of CPU time.

Expected Results:  
Steps 4 & 5 should take less than 5 seconds; less than 1 second would be nice.
(Assignee)

Comment 1

15 years ago
no, something odd is happening on your machine/profile. I'm not sure what. Do
you have lots of other folders? What happens if you change your account settings
not to check for new mail at startup for your imap server? Does it then take 50
seconds after you select your inbox?
Status: UNCONFIRMED → NEW
Ever confirmed: true

Updated

15 years ago
Keywords: perf

Comment 2

14 years ago
My spouse sees this problem on her Mac OS X box too.  She started seeing this
problem when I upgraded her from Mozilla 1.3 to Mozilla 1.6.  After reading the
description for this bug report, we thought we'd eliminated the problem after
removing all of her mail accounts (except for the local folders), then re-adding
the IMAP account that mattered.

The problem went away - for a while.

It came back last week.  Just now, I tested a download of 1.7RC1 to see if the
problem was fixed.  Its not.  So it would seem that Mozilla eventually writes
something to the local folders that causes it to slow down dramatically.

Opening Mail for the first time takes approximately 20-30s.  Once Mail has been
opened, shutting down takes an excessive 20-30s.

I'd be happy to run further tests to diagnose the problem, but I'm not familiar
enough with Mozilla to know what to do.  Suggestions welcome.
Product: MailNews → Core

Comment 3

11 years ago
Prodded by an email to update:

Over three years later, we do not see this bug, as we have switched to Thunderbird.  Thunderbird is not exhibiting the same symptoms, which may or may not be of help, depending on how much of the code they share.

Comment 4

11 years ago
no response to comment 1 from reporter. closing incomplete.
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → INCOMPLETE

Comment 5

11 years ago
WFM per reporter
Resolution: INCOMPLETE → WORKSFORME
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.