Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^10: Perl 5 Optimizing Compiler, Part 9: RPerl.org & The Low-Magic Perl Commandments

by Will_the_Chill (Pilgrim)
on Nov 12, 2013 at 12:37 UTC ( [id://1062181]=note: print w/replies, xml ) Need Help??


in reply to Re^9: Perl 5 Optimizing Compiler, Part 9: RPerl.org & The Low-Magic Perl Commandments
in thread Perl 5 Optimizing Compiler, Part 9: RPerl.org & The Low-Magic Perl Commandments

salva,

You are correct in your assessment that no-magic args (data) passed to a low-magic subroutine (operation) will run faster under RPerl, and magic args passed to a low-magic subroutine will fall back to run slowly and correctly.

When I said "any not-low-magic code", that is in fact what I meant. I was making a general statement that RPerl will fall back to slow high-magic mode whenever any magic data OR magic operations are encountered. Args to subs count as data, the subs count as ops, and any builtins or sub calls inside the sub also count as ops. We're currently extending the use of the term "magic" to include both magic data and ops that do magical'ish things. (See previous comments in this thread about use of the term.) Sorry for any confusion.

If you wonder what counts as "magic" operations, look at The Low-Magic Perl Commandments under the "Operations" section.

Perling,
~ Will
  • Comment on Re^10: Perl 5 Optimizing Compiler, Part 9: RPerl.org & The Low-Magic Perl Commandments

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-23 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found