[OSM-dev] osmium trouble

Hermann Peifer peifer at gmx.eu
Sun Nov 20 15:13:21 GMT 2011


On 20/11/2011 15:09, Jochen Topf wrote:
>
> I just pushed a fix for the memory leak. Please check whether it fixed your
> problems.
>

Thanks for taking care. Your fix does indeed help and processing larger 
files like germany.osm.pbf is possible again. FYI: the current osmjs 
takes noticeably more time for processing the same file, compared to 
osmjs from 15 October, see below.

Thanks again for your time, Hermann


# Using osmjs from today..
$ time ./osmjs -l array -j ~/osm/tmp/ways.js 
~/osm/pbffiles/germany.osm.pbf > /dev/null

real    8m17.119s
user    8m11.415s
sys     0m7.156s


# Using osmjs from 15 October..
$ time osmjs -l array -j ~/osm/tmp/ways.js 
~/osm/pbffiles/germany.osm.pbf > /dev/null

real    5m47.612s
user    5m41.429s
sys     0m7.264s


$ cat ~/osm/tmp/ways.js
Osmium.Callbacks.way = function() {
   if ( this.tags["highway"] ) {
     print(this.tags["highway"] + '\t' + this.geom.toWKT());
   }
}



More information about the dev mailing list