[% setvar title Precompiled Perl scripts. %]
To see what is currently happening visit http://www.perl6.org/
Precompiled Perl scripts.
Maintainer: Slava Pechenin <firstname.lastname@example.org> Date: 29 Aug 2000 Mailing List: email@example.com Number: 172 Version: 1 Status: Developing
The functionality to store/load precompiled perl scripts may be built into the core.
There exists a possibility to do the thing. One can store compiled perl code in file and load it again via B::Bytecode. But the produced file is large. The loading time is comparable to compiling the code anew. Several simple experiments show that disk i/o times does not affect too much - almost all data are in cache. The B extension mechanisms and algorithms are too slow. Therefore it is unusable.
Why bother? Consider the script that uses xml/xsl. It takes a lot of time to get such a script running. And the debugging process becomes harder with annoying initialization (every single .pm must be read by OS from numeric files and compiled from the very beginning). Another example is web server. Why loose CPU time to compile the same scripts?
Perl may have an option to vary the target precompiled format. The format affects the generated precompiled file size. User may choose appropriate effective format to minimize loading time. It clearly depends on the system which runs the script.