Name : perl-load
| |
Version : 0.23
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp150.1.2
| Date : 2015-04-14 14:00:00
|
Group : Development/Libraries/Perl
| Source RPM : perl-load-0.23-lp150.1.2.src.rpm
|
Size : 0.04 MB
| |
Packager : (none)
| |
Summary : Control when subroutines will be loaded
|
Description :
The \"load\" pragma allows a module developer to give the application developer more options with regards to optimize for memory or CPU usage. The \"load\" pragma gives more control on the moment when subroutines are loaded and start taking up memory. This allows the application developer to optimize for CPU usage (by loading all of a module at compile time and thus reducing the amount of CPU used during the execution of an application). Or allow the application developer to optimize for memory usage, by loading subroutines only when they are actually needed, thereby however increasing the amount of CPU needed during execution.
The \"load\" pragma combines the best of both worlds from the AutoLoader manpage and the SelfLoader manpage. And adds some more features.
In a situation where you want to use as little memory as possible, the \"load\" pragma (in the context of a module) is a drop-in replacement for the AutoLoader manpage. But for situations where you want to have a module load everything it could ever possibly need (e.g. when starting a mod_perl server in pre-fork mode), the \"load\" pragma can be used (in the context of an application) to have all subroutines of a module loaded without having to make any change to the source of the module in question.
So the typical use inside a module is to have:
package Your::Module; use load;
in the source. And to place all subroutines that you want to be loadable on demand after the (first) __END__.
If an application developer decides that all subroutines should be loaded at compile time, (s)he can say in the application:
use load \'now\'; use Your::Module;
This will cause the subroutines of Your::Module to all be loaded at compile time.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/openSUSE_Leap_15.0/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(load)
perl-load
Requires :