Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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?
[stevieb]: I have fixed a boatload of issues across several of my distributions, including a couple that have been nagging for a very long time and were exceptionally difficult to solve. Saving $ before we move, so thought I'd have a code session...
[stevieb]: ...session weekend. Went far better than I could have imagined. Even got a bunch of stuff soldered for another one of my electronics projects on the go, and am working on a fix for a MetaCPAN::Client issue I found

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-06-25 22:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (571 votes). Check out past polls.