[imp] Hardware request ( RAM ) of WebMail System

Chuck Hagenbuch chuck at horde.org
Fri Jan 5 08:54:06 PST 2007


Quoting Paul Holt <pcholt at bluebottle.com>:

> Argh. We had these problems too. You see there are points in IMP and  
> Pear MIME
> where the entire message is handled up to three times, and therefore there
> are briefly three copies in memory. If the attachment is base64 encoded, add
> another 40%, so you get 10*3*1.4=42MB just for the attachment.
>
> I went through the IMP 2.* code at one stage, and cut it back to having only
> two copies in memory at a time maximum. I also did a version trying to do all
> message manipulations in a temporary file, I was able to have just one string
> in memory at a time, but this proved unstable... though it could be done
> again.

A number of changes have been made recently to help with memory usage,  
and more are always welcome.

-chuck

-- 
"we are plastered to the windshield of the bus that is time." - Chris


More information about the imp mailing list