jacobwilliams / json-fortran

A Modern Fortran JSON API
https://jacobwilliams.github.io/json-fortran/
Other
338 stars 86 forks source link

json_value_get_child_by_index efficiency #401

Closed jacobwilliams closed 5 years ago

jacobwilliams commented 5 years ago

json_value_get_child_by_index could be more efficient by using the tail pointer. For example, if the index you are searching for is closer to the end, we can traverse the linked list backwards from tail, rather than always starting at the beginning.