[dev] I/O hammering (was: imp folder prefix)

Chuck Hagenbuch chuck@horde.org
Wed, 30 May 2001 00:37:41 -0400


Quoting Anil Madhavapeddy <anil@recoil.org>:

> This needs pondering ... looking at mailbox.php, we currently do several
> imap_header() calls - however, this can't be replaced with
> imap_headers() since it isn't granular enough (doesn't allow the
> selection of a range of headers to return, only all of them).  Also, we
> imap_fetchstructure() to determine what icon to put in beside the message.

Well... we only fetch just a slice of the message because of problems that 
phplib had with large amounts of session data. Now that we're using php4 
sessions, we could conceivably:

1). Just cache the whole message list
2). Cache the headers, too, while we're at it.

We can also drop the imap_fetchstructure(); I'm not sure how tied to it people 
are, but it seems like it'd be a pretty significant performance boost. All of 
these together might _really_ crank things up.

Thoughts?

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
Black and white and grey, all the shades of truth.