Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Module::Compile + B::Bytecode = Faster loading ?

by merlyn (Sage)
on Dec 18, 2006 at 20:55 UTC ( #590553=note: print w/ replies, xml ) Need Help??


in reply to Module::Compile + B::Bytecode = Faster loading ?

You should already be able to say:

perl -MO=Bytecode,-H,-oFoo/Bar.pmc Foo/Bar.pm
to compile Foo/Bar.pm to pmc.

You can use that to test out whether your theories will work.


Comment on Re: Module::Compile + B::Bytecode = Faster loading ?
Download Code
Re^2: Module::Compile + B::Bytecode = Faster loading ?
by cosimo (Hermit) on Dec 18, 2006 at 22:32 UTC

    Thanks merlyn,

    I don't know why, but looking at the docs, I tried with -O2 rather than -H and that failed miserably...

    Now, I only have to bytecode-compile a hundred modules, hope that the process works for all of them, and see if that saves time or not... :-)

    I'll try to automate the whole thing for the most used modules.

      It probably doesn't. Loading code with B::Bytecode is reported to be slower than loading code from source.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2014-07-25 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (167 votes), past polls