perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Wiles <fr...@wiles.org>
Subject Re: load large data
Date Mon, 24 Sep 2007 17:42:38 GMT
On Mon, 24 Sep 2007 06:08:45 -0400
pennyyh@aol.co.uk wrote:

> Hello,
> 
> I have a module,which loads large data into memory.
> 
> my $data = Mymodule->new;
> 
> this will take some ms to be finished.
> 
> So I think I can create this object at startup time,and share the
> $data acrosss all apache child processes.
> 
> Is it possible?How can I do it?

  Yeah you can do this in a <Perl> section at startup and
  your children can then use it.  I'm assuming here that the
  info in $data doesn't change or that you're ok with having
  to restart Apache to see the changes. 

 -------------------------------------------------------
   Frank Wiles, Revolution Systems, LLC. 
     Personal : frank@wiles.org  http://www.wiles.org
     Work     : frank@revsys.com http://www.revsys.com 


Mime
View raw message