Closed hrecht closed 7 years ago
Switching from json to html in listCensusApis added about a second to run time in several repeated tests. Still, this is preferable to the XML dependency and might be sped up through code optimization.
Functional version for json metadata is in https://github.com/hrecht/censusapi/commit/2901e0251c6ab6a5ccee0b09a516a8c591e6dec7, but it depends on dplyr::bind_rows - for variables metadata since they're nastily nested. Need to refactor without dplyr before merging to master.
E.g. use https://api.census.gov/data.json instead of https://api.census.gov/data.html in metadata functions. I don't anticipate any performance slowdowns from this (should be faster), but log html vs json run times and compare to be sure before release.