Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Premature and micro optimization...

by ikegami (Patriarch)
on Jun 11, 2007 at 16:21 UTC ( [id://620529]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Upper case data
    ===============
    ...
                Rate with_tr old_way
    with_tr 182262/s      --    -33%
    old_way 270854/s     49%      --
    
  2. or download this
    #!/usr/bin/perl
    
    ...
          with_tr => 'use strict; use warnings; our $string; my @rv = with
    +_tr($string); 1',
       });
    }
    
  3. or download this
                  Rate   with_tr   old_way with_tr_i old_way_i
    with_tr   180473/s        --      -32%      -39%      -52%
    old_way   265506/s       47%        --      -10%      -29%
    with_tr_i 296058/s       64%       12%        --      -20%
    old_way_i 372377/s      106%       40%       26%        --
    
  4. or download this
    ...
    
    ...
          with_tr_i => 'use strict; use warnings; our $string; ' . $with_t
    +r_inline . ' 1;',
       }),
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-24 01:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found