Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

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


.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.

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?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2018-10-16 03:44 GMT
Find Nodes?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...

    Results (83 votes). Check out past polls.