Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Perl 5 Optimizing Compiler

by chromatic (Archbishop)
on Aug 13, 2012 at 16:08 UTC ( #987144=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl 5 Optimizing Compiler
in thread Perl 5 Optimizing Compiler

The essential code-paths within the Perl compiler/interpreter itself are already well-identified and are optimized.

That may be true (it isn't, but it's at least plausible) if you take into account the current design of the Perl 5 VM. Unfortunately, the current design of the Perl 5 VM makes some assumptions which preclude performance.

It's enlightening to run some of the silly microbenchmarks people use for competitive benchmarking to see exactly why Perl 5 scales so badly on some of them. (See also my response on compact, typed arrays.)

Certainly, there are bona-fide edge cases, throughout the Perl system and its libraries, that are properly handled right now with XS code, in C or C++.

Cases also exist where writing XS will make your code slower—and I don't mean writing inefficient XS.


Comment on Re^2: Perl 5 Optimizing Compiler

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (15)
As of 2015-07-31 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (278 votes), past polls