json-fortran
json-fortran copied to clipboard
Speed up string to real
See the discussions here and here. There is a lot of room for improvement in the string to real parsing (which is currently using read(fmt=*)
which is apparently quite slow.
The C strtod
routine is much faster. Could add it as an option, or maybe even the default. Is it a guarantee that every Fortran compiler will have this? Seems to be true for Gfortran and Intel.
See also: https://fortran-lang.discourse.group/t/speed-of-atoi-and-atof-vs-internal-read/3375