fscanf-speed
fscanf-speed copied to clipboard
Try strtod() or strtof()
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.