[OSM-dev] osm2pgsql, .o5m import interface

Anthony osm at inbox.org
Sun Jul 3 00:32:16 BST 2011


On Sat, Jul 2, 2011 at 3:58 PM,  <marqqs at gmx.eu> wrote:
> However, the .o5m file format is usually chosen because of its speed, and this advantage would > get lost if you compressed the data.

With all due respect, my testing has found that the compressed .o5m
file (compressed with xz, which is lzma just like 7z) is faster than
the uncompressed file - at least for my server, which is I/O bound
when processing the uncompressed .o5m file.

> Therefore you may expect input files to be uncompressed (an uncompressed .o5m file has nearly
> the same size as a conventional .osm.bz2 file).

xz -1 gives reasonable compression.  xz -9 gives even better
compression, but compression (not uncompression) is kind of slow.



More information about the dev mailing list