[Tile-serving] [osm2pgsql] primitive parser doesn't work with pipes (#49)
pnorman
notifications at github.com
Thu Jun 27 09:12:45 UTC 2013
``time bzcat belgium-latest.osm.bz2 | osm2pgsql -r libxml2 -d osm2pgsqltest -l -O null -`` takes 1m21s but ``time bzcat belgium-latest.osm.bz2 | osm2pgsql -r primitive -d osm2pgsqltest -l -O null -`` takes 0.2s, which is clearly absurd. It also only parses 30k nodes.
When removing -O null, the resulting database is under 1MB.
If I bunzip2 to disk and give it the file, primitive does work and takes 46s (-O null) to libxml2's 71s. The pbf takes about 7.25 seconds.
If we aren't maintaining the primitive parser, I'd suggest removing it. PBF is absurdly faster than either XML parser for where speed matters.
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/49
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20130627/94a7073a/attachment.html>
More information about the Tile-serving
mailing list