Hell yes!   It's over 4 times faster than even my attempt, with your repair making it correct.   Gratuitous benchmark below:
               Rate     smack    new1      uk  badkcams othersmack
smack         188/s        --    -96%    -97%      -97%       -99%
new1         5088/s     2607%      --     -8%      -23%       -86%
uk           5517/s     2835%      8%      --      -16%       -85%
badkcams     6594/s     3409%     30%     20%        --       -82%
othersmack  37394/s    19797%    635%    578%      467%         --
            
               Rate     smack    new1      uk  badkcams othersmack
smack        42.6/s        --    -23%    -29%      -43%       -93%
new1         54.9/s       29%      --     -8%      -27%       -91%
uk           59.6/s       40%      9%      --      -21%       -90%
badkcams     75.0/s       76%     37%     26%        --       -88%
othersmack    626/s     1372%   1040%    951%      735%         --
(See shenme's scratchpad for oogly program)

In reply to Re: Re: Re: Re: 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.