Bug#268758: Renaming a large (maildir) mailbox is slow
Package: kmail
Version: 4:3.3.0-2
Severity: normal
It appears that kmail renames a mailbox by creating a new mailbox,
then moving each message of the old mailbox to the new mailbox. I say
this because renaming a somewhat large mailbox (containing about 4000
messages) takes around a minute of hard drive thrashing on my computer.
Since the messages are just files in the filesystem, I suggest that it
would be worthwhile for kmail to avail itself of the rename(2) system
call, and to use it on the mailbox directory (ie: don't move every
message file individually!).
Daniel
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=en_US, LC_CTYPE=en_US (ignored: LC_ALL set to en_US)
Versions of packages kmail depends on:
ii kdelibs4 4:3.3.0-1.1 KDE core libraries
ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries an
ii libgcc1 1:3.4.1-7 GCC support library
ii libice6 4.3.0.dfsg.1-6 Inter-Client Exchange library
ii libkcal2 4:3.3.0-2 KDE calendaring library
ii libkdenetwork2 4:3.3.0-2 KDE Network library
ii libkdepim1 4:3.3.0-2 KDE PIM library
ii libkleopatra0 4:3.3.0-2 KDE GnuPG interface libraries
ii libkpimidentities1 4:3.3.0-2 KDE PIM user identity information
ii libksieve0 4:3.3.0-2 KDE mail/news message filtering li
ii libmimelib1 4:3.3.0-2 KDE mime library
ii libpng12-0 1.2.5.0-7 PNG library - runtime
ii libqt3c102-mt 3:3.3.3-4 Qt GUI Library (Threaded runtime v
ii libsm6 4.3.0.dfsg.1-6 X Window System Session Management
ii libstdc++5 1:3.3.4-9 The GNU Standard C++ Library v3
ii libx11-6 4.3.0.dfsg.1-6 X Window System protocol client li
ii libxext6 4.3.0.dfsg.1-6 X Window System miscellaneous exte
ii perl 5.8.4-2 Larry Wall's Practical Extraction
ii xlibs 4.3.0.dfsg.1-6 X Window System client libraries m
ii zlib1g 1:1.2.1.1-7 compression library - runtime
-- no debconf information
Reply to: