Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Perl v5.6.1 looking for .pmc files

by fglock (Vicar)
on Oct 22, 2002 at 17:55 UTC ( #207140=note: print w/ replies, xml ) Need Help??


in reply to Perl v5.6.1 looking for .pmc files

From: http://dev.perl.org/perl5/list-summaries/p5p-200207-3.pod.html

.pmc files

Nick Ing-Simmons found an old, unused feature that was deeply burried into the perl code : when loading a module via use or require, perl checks whether there's a .pmc file along the .pm file, and newer; if it finds it, it gets loaded in place of the .pm. This was intended to be used by the byteloader, but apparently isn't used at all (unless something was missed.) Anyway it was too late to remove it.

http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2002-07/msg00555.html


Comment on Re: Perl v5.6.1 looking for .pmc files
Re: Re: Perl v5.6.1 looking for .pmc files
by ruscoekm (Monk) on Oct 22, 2002 at 18:32 UTC

    Ha! Many thanks for digging that one out of the archives. Nick's comment that "The required stat()s on a sick NFS system are significant!" summed up my feelings exactly :-)

    By the sound of the subsequent mail chain, there should be a workaround in v5.8.1. Until then, I guess I will have to look for improvements elsewhere.

    Cheers, Kevin

Re: Re: Perl v5.6.1 looking for .pmc files
by DapperDan (Pilgrim) on Oct 23, 2002 at 13:25 UTC
    Bravo for finding this!

    I too wondered what the flap was with these .pmc stat calls, because the original question was well-asked.

Re^2: Perl v5.6.1 looking for .pmc files
by rvosa (Curate) on Mar 13, 2007 at 02:04 UTC
    Sooo... instead you could speed things up by compiling the modules to bytecode using Module::Compile (okay, in theory).

      yes! except that the feature is more used nowadays to preprocess complex code into plain perl5, instead of bytecode. v6, for example, process perl6 source code into plain perl5 "pmcs".

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://207140]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-07-10 04:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (198 votes), past polls