[Dovecot] Re: Bug#224092: Dovecot IMAP: detection of folders

Timo Sirainen tss at iki.fi
Sat Dec 20 18:52:40 EET 2003


On Dec 20, 2003, at 6:11 PM, Charlie Brady wrote:

>> I understand. However, making a simple check for being a file or
>> directory wouldn't harm anyone.
>
> It would cost a stat per file/directory, which Timo has tried to avoid
> (for performance reasons, AIUI). Are folders enumerated often enough 
> and
> the cost high enough that it is an important optimisation?

Maybe not that important, but it's rather useless to stat() them.

I have plans actually for creating a single mailbox index file per user 
which could be used to get all information for LIST and STATUS 
commands. That will be a nice optimization :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20031220/b2b01a25/attachment-0001.bin>


More information about the dovecot mailing list