Petal::CodePerlPetal::CodePerl is a Perl module to make Petal go faster by compiling the expressions. | |
Download |
Petal::CodePerl Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Fergal Daly
- Publisher web site:
- http://search.cpan.org/~fdaly/Test-NoWarnings-0.084/lib/Test/NoWarnings.pm
Petal::CodePerl Tags
Petal::CodePerl Description
Petal::CodePerl is a Perl module to make Petal go faster by compiling the expressions. Petal::CodePerl is a Perl module to make Petal go faster by compiling the expressions.SYNOPSIS use Petal::CodePerl; # continue as you would normally using Petalor use Petal; $Petal::CodeGenerator = 'Petal::CodePerl::CodeGenerator'; # continue as you would normally use PetalThis module provides a CodeGenerator for Petal that inherits almost everything from Petal::CodeGenerator but modifies how expressions are dealt with. Petal normally includes code like this $hash->get( "not:user" )in the compiled template. This means the path has to be parsed and interpreted at runtime. Using Petal::CodePerl, Petal will now produce this ! ($hash->{"user"})which will be much faster.It uses Parse::RecDescent to parse the PETALES expressions which makes it a bit slow to load the module but this won't matter much unless you have turned off caching. It won't matter at all for something like Apache's mod_perl. Requirements: · Perl
Petal::CodePerl Related Software