[dev] Re: [cvs] commit: horde/lib/MIME Contents.php

Chuck Hagenbuch chuck at horde.org
Wed Jan 8 14:12:33 PST 2003


Quoting Michael M Slusarz <slusarz at bigworm.colorado.edu>:

> Is there any limit to the length of an array key then? I could see a case
> where serializing a MIME_Part object might result in a 1 MB key (e.g.
> there is 1 MB of data in the contents of a MIME_Part object) - it seems 
> like an awful load on the system to allocate 1 MB of memory for a single 
> key... MD5 is nice simply because it allows a nice, 32 byte key.

I guess I can see that too, but the problem is that md5() is time consuming.
Maybe crc32() (http://www.php.net/manual/en/function.crc32.php) is a compromise?

-chuck

--
Charles Hagenbuch, <chuck at horde.org>
must ... find ... acorns ... *thud*


More information about the dev mailing list