[OSM-dev] osmium trouble
Martijn van Exel
mvexel at gmail.com
Sun Nov 20 22:34:27 GMT 2011
I also ran into trouble with files of around 40MB or larger. I still
get the same errors though, either using array or sparsetable for node
storage.
I'm on Ubuntu 10.04 64 bit with 16GB RAM.
Martijn
On Sun, Nov 20, 2011 at 8:13 AM, Hermann Peifer <peifer at gmx.eu> wrote:
> 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());
> }
> }
>
--
martijn van exel
schaaltreinen.nl
More information about the dev
mailing list