pszufe / OpenStreetMapX.jl

OpenStreetMap (*.osm) support for Julia 1.0 and up
MIT License
123 stars 24 forks source link

Avoid constructing a Set by using haskey #50

Closed blegat closed 3 years ago

blegat commented 3 years ago

The current approach seems to construct a Set so that it's fast to check whether an element is a key of the dictionary. This seems useless because:

So this is building a second dictionary with exactly the same keys to do haskey. Clearly it's best not to do that.