[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tpop3d-discuss] mailspool_save_index() using STDIO
From: |
Chris Elsworth |
Subject: |
Re: [tpop3d-discuss] mailspool_save_index() using STDIO |
Date: |
Mon, 1 Jul 2002 15:14:58 +0100 |
User-agent: |
Mutt/1.5.1i |
On Mon, Jul 01, 2002 at 03:09:38PM +0100, Chris Lightfoot wrote:
> On Mon, Jul 01, 2002 at 02:51:01PM +0100, Chris Elsworth wrote:
> > Having just stumbled upon mailspool_save_index(), I see it uses the
> > STDIO library, perhaps unnecessarily - it might be an idea to
> > eradicate the rather awful STDIO file i/o functions from the code
> > entirely if possible?
>
> TBH it's not obvious to me that this is worth doing. It
> would certainly be possible to have a buffer and use
> read/write on it, but since it's actually a text file of
> lines with fields of known format, which is about the only
> thing stdio is useful for, it may as well stay. In
> particular, stdio's buffering may well be the most
> efficient way to do this.
Ok, understood.. unrelated note.. has there been much call for a
dbmfile authenticator? It would be very easy to replicate most of the
flatfile authenticator, but simply checking a dbm file instead in the
interest of speed where there are thousands of entries. If that would
be welcome, I'll work on that..
--
Chris