Hi there,

On Fri, 13 Feb 2004, Garth Webb wrote:

> So what is a good alternative to Apache::Registry?  My impression was
> that this is the thing to use unless you want the extra functionality of
> something like HTML::Mason.

I'm not sure I understand the question.  Apache::Registry offers a
means to simulate a CGI environment, so that many existing CGI scripts
can run unmodified (or with very little modification) under mod_perl,
giving a substantial performance boost in most cases.  Toolkits like
HTML::Mason offer very rich sets of features well beyond the scope of
Apache::Registry and shouldn't really be compared with it.

>  I read:
> 
> http://perl.apache.org/docs/1.0/guide/performance.html#Apache__Registry_PerlHandler_vs__Custom_PerlHandler
> 
> which shows Apache::Registry is slightly slower (but not by much) than
> writing a custom Handler.  In my case I have 100's of scripts I'd have
> to write custom handlers for which seems like a maintenance nightmare. 

The advice I gave about handlers was to someone starting from scratch
for whom performance clearly isn't the issue.  I wouldn't have given
that advice to someone who wants to run hundreds of existing CGI
scripts with minimal maintenance issues.  I'd probably say now could
be a good time to look at the 'strict' pragma and the '-w' switch.

> Has someone reinvented Apache::Registry in a way that isn't a horrible hack?

Not as far as I'm aware. :)

Ged.



-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to