Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: Re: How to store CODE ref

by gildir (Pilgrim)
on Nov 29, 2001 at 13:42 UTC ( [id://128307]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: How to store CODE ref
in thread How to store CODE ref

Still not feasible solution. Most of the templates contain embeded perl code. If I would compile them in every Apache process separatly, I will get size_of_compiled_code*number_of_httpd_processes memory consumption. On a large system (hundreds of httpd processes) even a small size of templates will require much memory, and I have quite a large templates.

In addition to this, they are user-customizable, so I accept that the size of whole bunch of templates will be considerable, too much to store in-memory.

Replies are listed 'Best First'.
Re{6}: How to store CODE ref
by IlyaM (Parson) on Nov 30, 2001 at 13:12 UTC
    Sorry, but there is no alternative yet. Either you preload your data before Apache forks or it will be duplicated in all childs. No caching solution can help you share that memory between Apache childs.

    You have to wait for Apache 2.0 with mod_perl 2.0 which use threads.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://128307]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found