| 1 |
Source: libload-perl |
| 2 |
Maintainer: Debian Perl Group <[email protected]> |
| 3 |
Uploaders: gregor herrmann <[email protected]> |
| 4 |
Section: perl |
| 5 |
Testsuite: autopkgtest-pkg-perl |
| 6 |
Priority: optional |
| 7 |
Build-Depends: debhelper-compat (= 13) |
| 8 |
Build-Depends-Indep: perl |
| 9 |
Standards-Version: 4.7.2 |
| 10 |
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libload-perl |
| 11 |
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libload-perl.git |
| 12 |
Homepage: https://metacpan.org/release/load |
| 13 |
Rules-Requires-Root: no |
| 14 |
|
| 15 |
Package: libload-perl |
| 16 |
Architecture: all |
| 17 |
Depends: ${misc:Depends}, |
| 18 |
${perl:Depends} |
| 19 |
Description: pragma for controlling when subroutines will be loaded |
| 20 |
The "load" pragma allows a module developer to give the application developer |
| 21 |
more options with regards to optimize for memory or CPU usage. The "load" |
| 22 |
pragma gives more control on the moment when subroutines are loaded and start |
| 23 |
taking up memory. This allows the application developer to optimize for CPU |
| 24 |
usage (by loading all of a module at compile time and thus reducing the |
| 25 |
amount of CPU used during the execution of an application). Or allow the |
| 26 |
application developer to optimize for memory usage, by loading subroutines |
| 27 |
only when they are actually needed, thereby however increasing the amount of |
| 28 |
CPU needed during execution. |
| 29 |
. |
| 30 |
The "load" pragma combines the best of both worlds from AutoLoader and |
| 31 |
SelfLoader. And adds some more features. |
| 32 |
. |
| 33 |
In a situation where you want to use as little memory as possible, the "load" |
| 34 |
pragma (in the context of a module) is a drop-in replacement for AutoLoader. |
| 35 |
But for situations where you want to have a module load everything it could |
| 36 |
ever possibly need (e.g. when starting a mod_perl server in pre-fork mode), |
| 37 |
the "load" pragma can be used (in the context of an application) to have all |
| 38 |
subroutines of a module loaded without having to make any change to the |
| 39 |
source of the module in question. |