Getting a bit off topic...
schily(a)schily.net (Joerg Schilling) wrote:
For today, numbers definitely look different. 30% of
the total amount of CPU
time spend by the Bourne Shell is spend by the conversion from multy-byte
strings to wide strings and vice versa. BTW: "dash" is faster than bash just
because it does not imlement multy-byte support. If it did, it would become
slower than bash.
Interesting. Gawk stores everything in multibyte form and only converts
to/from wide characters when needed (length, substr, match, a few others).
I don't have timings either way, but I'm pretty sure that gawk doesn't
spend anything like 30% of its time doing those conversions. :-)
Arnold