json-fortran icon indicating copy to clipboard operation
json-fortran copied to clipboard

Speed up string to real

Open jacobwilliams opened this issue 3 years ago • 1 comments

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.

jacobwilliams avatar Nov 06 '21 14:11 jacobwilliams

See also: https://fortran-lang.discourse.group/t/speed-of-atoi-and-atof-vs-internal-read/3375

jacobwilliams avatar May 07 '22 22:05 jacobwilliams