Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Micro optimisations can pay off, and needn't be a maintenance problem

by BrowserUk (Patriarch)
on Nov 12, 2002 at 06:42 UTC ( [id://212211]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use constant SELF => 0;
    use constant VALUE=> 1;
    sub setx{
        $_[SELF]->{_x} = $_[VALUE];
    }
    
  2. or download this
    #! perl -sw
    use strict;
    ...
    constant 3.15/s      25%      14%       0%       --
    
    c:\test>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://212211]
Approved by dws
Front-paged by JaWi
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-19 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found