I suspect the reason is that while substr() can just copy the data, whereas unpack() must recode, and check for more strange conditions. Also, try a (rather then A), Z, and z.
In reply to Re: Unexpected: unpack slower than several substr's. Why?
by theorbtwo
in thread Unexpected: unpack slower than several substr's. Why?
by BazB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |