in reply to How to store CODE ref
If efficiency is the aim surely modperl and putting the code in a module would be a good choice. Once the module is loaded and the code compiled it is ready, willing and able for the duration. Often the major bottleneck is in the overhead of starting the new process for each request, not compiling the actual Perl code itself. Under modperl you start one process, compile once and then use this process to deal with all subsequent requests. The first one is slow then it is Win Win Win.
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: How to store CODE ref
by gildir (Pilgrim) on Nov 28, 2001 at 22:44 UTC | |
by IlyaM (Parson) on Nov 28, 2001 at 23:03 UTC | |
by gildir (Pilgrim) on Nov 29, 2001 at 13:42 UTC | |
by IlyaM (Parson) on Nov 30, 2001 at 13:12 UTC |