Out of the mouths of dab'es ! Isn't this a 'sexeger' situation?

Maybe someone should check my results, 'cuz I can't believe that adding in the reverse's doesn't impact these timings more.   I added a different routine to the mix benchmarked by antirice:

sub badkcams { $a = reverse $s; $a =~ s[\cH[^\cH]|\cH$][]g while 1+index $a, chr(8); reverse $a; }
I then ran the benchmark again:
           Rate    smack     new1       uk badkcams
smack     191/s       --     -96%     -97%     -97%
new1     5063/s    2547%       --      -7%     -25%
uk       5469/s    2759%       8%       --     -19%
badkcams 6715/s    3411%      33%      23%       --
           Rate    smack     new1       uk badkcams
smack    42.4/s       --     -22%     -30%     -44%
new1     54.7/s      29%       --      -9%     -27%
uk       60.2/s      42%      10%       --     -20%
badkcams 75.3/s      78%      38%      25%       --
Am I reading this right?   It's faster?!?
(This is Perl 5.8.0 AS build 806 running on WinXP.)

In reply to Re: Re: Re: should this backspace removal code be done better? by shenme
in thread should this backspace removal code be done better? by smackdab

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.