Bug 233134

Summary: loading a local folder with 1000+ unread messages is amazingly slow
Product: [Applications] kmail Reporter: Thomas Fjellstrom <thomas>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bjoern
Priority: NOR    
Version: 1.13.2   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Thomas Fjellstrom 2010-04-03 06:36:21 UTC
Version:           1.13.2 (using KDE 4.4.2)
Compiler:          gcc 4.4.3 
OS:                Linux
Installed from:    Debian testing/unstable Packages

Switching to a folder with 1000 or more unread messages causes the folder list to scan each and every mail in said folder, which in some cases means scanning 10k to 100k or more messages. It can take minutes on my dual core 2.53Ghz laptop to finally get to a point that I can use the folder. I have the folders set to display in threaded form if that makes a difference.

To reproduce, just find a threaded folder with tens of thousands to hundreds of thousands of mails, and make sure at least one thousand or so of the messages are unread, and it should take kmail many minutes to thread the entire folder.

Expected behavior, switching local folders should be near instantaneous.
Comment 1 Björn Ruberg 2010-04-05 23:33:09 UTC
Yes, the threaded view is the cause here. It's because expanding list items is slow with QListView.

*** This bug has been marked as a duplicate of bug 131507 ***