BSD Ports

textproc/p5-Petal-CodePerl 0.06_1 DragonFly

Make Petal go faster by compiling the expressions

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
perl5, textproc
Package size
29.7 KiB, 441.7 KiB installed

Description

This 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.

In the other systems

SystemPortVersion
DragonFlytextproc/p5-Petal-CodePerl0.06_1
FreeBSDtextproc/p5-Petal-CodePerl0.06_1
HardenedBSDtextproc/p5-Petal-CodePerl0.06_1
GhostBSDtextproc/p5-Petal-CodePerl0.06_1

Install

Binary package:

pkg install p5-Petal-CodePerl

From DPorts:

cd /usr/dports/textproc/p5-Petal-CodePerl && make install clean

Dependencies

Run dependencies 4

No port depends on this one.