[EMAIL PROTECTED] (Kelly White) wrote:
>I am considering using either HTML::Mason or Apache::Registry for my CGI
>scripts, but am not sure which is faster.  Would the template/pages be cached
>like the scripts are in Registry?  Which would be faster?  Obviously using
>Mason would make cleaner code, but it wouldn't get compiled, would it?  Any
>help you can give is appreciated.  Thanks,

Under Mason:

  * Yes, the templates (components) are cached, both on disk and in memory.
  * Yes, components are pre-compiled into Perl subroutines.
  * In addition, there's a fairly comprehensive cache control system that
    lets you control caching of certain parts of the output based on
    whatever parameters you need.

Mason can still be slower than Registry, but that's because Mason does
more for you.  It's a whole framework.  It can also be faster than
Registry if you take advantage of its advanced caching stuff (and if it
would have been too much hassle to do something similar under Registry).
Just like Perl can often be faster than C because writing the equivalent
C can be too much hassle.



Reply via email to