in reply to Re: Convert string to array - performance challenge
in thread Convert string to array - performance challenge

Your benchmark is broken, because after the first iteration of for( 0 .. 20 ), $buffer will have been reduced to length zero (because of the chops).

With that corrected, "reverse map chop" isn't any faster than the other solutions.

Replies are listed 'Best First'.
Re^3: Convert string to array - performance challenge
by BrowserUk (Patriarch) on Apr 07, 2010 at 18:41 UTC

    Acknowledged.