FYI: using strtod
for the string to double conversion, and a few other minor tweaks, I’ve got JSON-Fortran parsing this canada.json
file in 0.057 seconds with Gfortran 11.1. Amazing! Same order of magnitude as the python/C ones, although still not as fast, but a huge improvement from the read(fmt=*)
version.
4 Likes