Name : perl-HTML-Template-JIT
| |
Version : 0.50.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-07-23 22:00:58
|
Group : Unspecified
| Source RPM : perl-HTML-Template-JIT-0.50.0-lp156.1.1.src.rpm
|
Size : 0.06 MB
| |
Packager : https://www_suse_com/
| |
Summary : Just-in-Time Compiler for Html::Template
|
Description :
This module provides a just-in-time compiler for HTML::Template. The module works in two phases:
* Load
When new() is called the module checks to see if it already has an up-to-date version of your template compiled. If it does it loads the compiled version and returns you a handle to call param() and output().
* Compile
If your template needs to be compiled - either because it has changed or because it has never been compiled - then HTML::Template::JIT loads HTML::Template::JIT::Compiler which uses HTML::Template and Inline::C to compile your template to native machine instructions.
The compiled form is saved to disk in the jit_path directory and control returns to the Load phase.
This may sound a lot like the way HTML::Template\'s cache mode works but there are some significant differences:
* The compilation phase takes a long time. Depending on your system it might take several seconds to compile a large template.
* The resulting compiled template is much faster than a normal cached template. My benchmarks show HTML::Template::JIT, with a precompiled template, performing 4 to 8 times faster than HTML::Template in cache mode.
* The resulting compiled template should use less memory than a normal cached template. Also, if all your templates are already compiled then you don\'t even have to load HTML::Template to use the templates!
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.6/noarch |