2 ms·
Try setting LANG=C before running the program, or doing setlocale(LC_ALL, "C"). That _might_ improve the speed. In any event, locale handling--such as determini
by wahern 12y ago
Try setting LANG=C before running the program, or doing setlocale(LC_ALL, "C"). That _might_ improve the speed. In any event, locale handling--such as determining whitespace--will slow things down considerably. I presume this is happening on Linux, and glibc's locale handling is dog slow. Solaris' is ridiculously fast by comparison. Why, I don't know.