Re:How fast is fscanf?
by wahern on Monday October 06, 2014 @01:10AM
(#8414364)
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.
[ Parent
| on HN ]
There are no comments on this comment yet.