SymbolixAU / geojsonsf

Conversion between sf and geojson
Other
82 stars 7 forks source link

reading url has slowed #44

Closed SymbolixAU closed 5 years ago

SymbolixAU commented 6 years ago

This benchmark from the Readme is now slower in geojsonsf

myurl <- "http://eric.clst.org/assets/wiki/uploads/Stuff/gz_2010_us_050_00_500k.json"

library(microbenchmark)

microbenchmark(
    geojsonsf = {
        geojson_sf(myurl)
    },
    sf = {
        sf::st_read(myurl, quiet = T)
    },
    times = 2
)

but it's more efficient https://stackoverflow.com/a/52901234/5977215

SymbolixAU commented 5 years ago

I don't think I can improve this.