Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re^4: Perl speed VS. other languages

by Aristotle (Chancellor)
on Jan 17, 2002 at 19:50 UTC ( #139525=note: print w/replies, xml ) Need Help??

in reply to Re: (tilly) 3: Perl speed VS. other languages
in thread Perl speed VS. other languages

Well it is a known factoid: Perl compiles to high-level bytecode, ie many builtins compile to a single opcode, whereas Java bytecode mimics a real CPU, so you are essentialy pitting a P-code interpreter against a hardware emulator. The P-code is almost bound to win.

The well known strategy of optimizing Perl programs by tuning them to spend a maximum amount of time running builtins (see Schwartzian Transform f.ex) highlights this issue clearly. Java optimization is very different and much closer resembles traditional optimization.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://139525]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (8)
As of 2018-06-17 23:01 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (107 votes). Check out past polls.