Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2016-12-09 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (153 votes). Check out past polls.