<p><code>time bzcat belgium-latest.osm.bz2 | osm2pgsql -r libxml2 -d osm2pgsqltest -l -O null -</code> takes 1m21s but <code>time bzcat belgium-latest.osm.bz2 | osm2pgsql -r primitive -d osm2pgsqltest -l -O null -</code> takes 0.2s, which is clearly absurd. It also only parses 30k nodes.</p>

<p>When removing -O null, the resulting database is under 1MB.</p>

<p>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.</p>

<p>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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/osm2pgsql/issues/49'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/g8smGCFOcVLF28Q-xX3zcUnnI11KnOF6RDAswuRqe2e0_dnMq4ReFM6GNFRIzZcH.gif' height='1' width='1'></p>