fscanf-speed icon indicating copy to clipboard operation
fscanf-speed copied to clipboard

Try strtod() or strtof()

Open phmarek opened this issue 10 years ago • 0 comments

I saw the same thing - reduction of runtime by about 50% by using strtoi and similar instead of sscanf.

That's because sscanf tries to use locale-data, like thousands-separators and so on.

phmarek avatar Oct 06 '14 05:10 phmarek