On Thu, 13 May 2004, Cees Hek wrote:

> Memoize is mainly used in persistant environments.  Although many
> people use mod_perl or SpeedyCGI with C::A, we are talking about
> "CGI"::Application, so a disk based cache makes sense as a default.

Memoize can do disk-based caching.  From the docs:

    tie my %cache => 'GDBM_File', $filename, O_RDWR|O_CREAT, 0666;
    memoize 'function', SCALAR_CACHE => [HASH => \%cache];

But really, if you're worried about performance and you're not using a
persistent environment...  Well, you've got bigger problems than a
couple slow run-modes!

-sam

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to