Bug 69439 - kmail pauses switching folders where number of messages is over 10,000
Summary: kmail pauses switching folders where number of messages is over 10,000
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mandrake RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-01 15:48 UTC by Mark Watts
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Watts 2003-12-01 15:56:21 UTC
Version:            (using KDE KDE 3.1.3)
Installed from:    Mandrake RPMs
Compiler:          gcc version 3.3.1 
OS:          Linux

Switching from one mail folder to another, where the destination folder has in excess of 10,000 messages (all folders are Maildir) causes a long pause (more than 10 seconds) and kmail is unresponsive for the duration of the swich.

The more messages you have in the folder, the longer the pause.
Comment 1 Ingo Klöcker 2003-12-01 18:38:00 UTC
A certain delay is not avoidable since the list of messages has to be build and sorted. But we've improved the speed for KDE 3.2. Switching to a 30,000 message folder (with a slow Notebook harddisk) took about 7 seconds the first time after starting KMail and only about 2 seconds the second, third, etc. time.
Comment 2 Mark Watts 2003-12-01 20:18:57 UTC
Subject: Re:  kmail pauses switching folders where number of messages is over 10,000

> A certain delay is not avoidable since the list of messages has to be build
> and sorted. But we've improved the speed for KDE 3.2. Switching to a 30,000
> message folder (with a slow Notebook harddisk) took about 7 seconds the
> first time after starting KMail and only about 2 seconds the second, third,
> etc. time.

True, but as far back as 3.0.0 folder switching was almost instant, even with 
40k messages in a folder.

Mark.

Comment 3 Stephan Kulow 2003-12-01 21:35:42 UTC
Have a look at strace while you switch. And make sure not to use NFS as backing FS :)
Comment 4 Mark Watts 2003-12-02 09:57:58 UTC
Subject: Re:  kmail pauses switching folders where number of messages is over 10,000

> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>
> http://bugs.kde.org/show_bug.cgi?id=69439
>
>
>
>
> ------- Additional Comments From coolo@kde.org  2003-12-01 21:35 -------
> Have a look at strace while you switch. And make sure not to use NFS as
> backing FS :)

It's a local XFS filesystem, on a 40GB IBM drive on its own ATA-100 
channel....

I'll check the strace and get back to you, but I wonder if its to do with the 
folders being Maildirs and not mbox format?

Comment 5 Stephan Kulow 2003-12-02 11:07:47 UTC
Subject: Re:  kmail pauses switching folders where number of messages is over 10, 000

On Tuesday 02 December 2003 09:58, Mark Watts wrote:
> I'll check the strace and get back to you, but I wonder if its to do with the 
> folders being Maildirs and not mbox format?
> 
Possible. It depends a lot on XFS's implementation of large folders.

Greetings, Stephan