Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

PerlEx and .PM recompilation

by RichardH (Sexton)
on Mar 25, 2000 at 00:30 UTC ( #6097=perlquestion: print w/ replies, xml ) Need Help??
RichardH has asked for the wisdom of the Perl Monks concerning the following question:

I'm working in an environment where ActiveState's PerlEx technology is used in order to speed the execution of perl code. The perl interpreters, according to ActiveState's documentation, are supposed to check the last modification and last run dates of the perl code before the code is recompiled. If the last modification of the code is before the last run of the code, it is supposed to used a cached version of the code. However, I have noticed that when I make a change in a .pm file, the changes may not be visible for quite a while. Has anyone else noticed this behavior with ActiveState's products? I'm trying to determine if (a) this is a bug, (b)this is simply the way the system is expected to perform or (c) specific to my environment possibly due to the installation options or environmental variables or other software at our site. Any assistance would be invaluable. Thanks!

Comment on PerlEx and .PM recompilation
Replies are listed 'Best First'.
Re: PerlEx and .PM recompilation
by larrymcp (Initiate) on Feb 03, 2012 at 03:04 UTC
    Yep, this is normal. In their documentation for PerlEx, it states the following... see 2nd paragraph in particular:
    "Before a Perl script is executed, the precompiler compares the last modification time of the script file against the last time it was compiled and cached by PerlEx. If the modification time is more recent, the PerlEx precompiler throws away the cached state, recompiles, and caches the compiled state of the script. The cached state of the script is then executed.
    This ensures that PerlEx recognizes any changes to the script that you may make while PerlEx is running. However, any files or modules loaded by the script via require or use will not be reloaded by PerlEx in this way. If you change any modules used by your scripts, restart the web server or reload the PerlEx interpreters."

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://6097]
Approved by root
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2016-05-29 07:22 GMT
Find Nodes?
    Voting Booth?