[Tile-serving] [osm2pgsql] Huge performance loss when using --extra-atributes (#189)
Benjamin Börngen-Schmidt
notifications at github.com
Tue Oct 7 22:34:00 UTC 2014
Okay I done further testing and narrowed down the performance impact to the processOsmDataDenseNodes function
Disableing the if statement at https://github.com/openstreetmap/osm2pgsql/blob/master/parse-pbf.c#L321 bumps up the import of nodes to around 650k/s
The Performance impact seems to start at https://github.com/openstreetmap/osm2pgsql/blob/master/parse-pbf.c#L318 where it starts to drop down to ~900k/s
As far as I could dig down the problem was, that it has something to do with the addItem function in https://github.com/openstreetmap/osm2pgsql/blob/master/keyvals.c#L223, because disableing all calls to addIntItem and addItem in the processOsmDataDenseNodes boosted the importspeed to around 2900k/s again.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/189#issuecomment-58274096
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20141007/875f43b4/attachment-0001.html>
More information about the Tile-serving
mailing list