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.
In reply to Re^2: Convert string to array - performance challenge
by almut
in thread Convert string to array - performance challenge
by rtillian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |