You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had performance issues with osmdata_sc used directly on OSM data (by providing a local .osm file), with medium to large files (30 Mo to 300 Mo, extracted with osmextract + osmium).
I think I found a way to speed things up : fill_overpass_data is loading the OSM xml data and then casting it as character, which appears to be very slow. I simply replaced doc <- as.character(doc) by doc <- readChar (doc, file.info (doc)$size) : on my machine, a quick test with a 50 Mo .osm file gives an execution time of 4s instead of 80s.
I'll make a PR with the proposed changes.
The text was updated successfully, but these errors were encountered:
I had performance issues with osmdata_sc used directly on OSM data (by providing a local .osm file), with medium to large files (30 Mo to 300 Mo, extracted with osmextract + osmium).
I think I found a way to speed things up : fill_overpass_data is loading the OSM xml data and then casting it as character, which appears to be very slow. I simply replaced
doc <- as.character(doc)
bydoc <- readChar (doc, file.info (doc)$size)
: on my machine, a quick test with a 50 Mo .osm file gives an execution time of 4s instead of 80s.I'll make a PR with the proposed changes.
The text was updated successfully, but these errors were encountered: