logo separator

[mkgmap-dev] Performance with --bounds option

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Wed Mar 18 10:43:33 GMT 2020

Hi Gerd

With the current version I have a tile that takes 3.5 hours to build.
With an old version (r4295) it took about 3 minutes. Without --bounds
it takes 1 minute 15 secs.

Relevant options are:
 --bounds=bounds.zip --location-autofill=is_in,nearest


>From the mkgmap.log files:
INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: Checking bounds dir took 66 ms
...
INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: Starting with location hook
INFO: uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryUtil 
 ../mapGB/74220001.osm.pbf: loading boundary file: bounds_2650000_
-750000.bnd
... about 40 similar messages ...
INFO: uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryUtil 
 ../mapGB/74220001.osm.pbf: loading boundary file: bounds_2800000_
-250000.bnd
WARN: uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryGrid 
 ../mapGB/74220001.osm.pbf: no precompiled boundary information
available for raster tile 2750000_-400000
... 16 similar messages ...
WARN: uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryGrid 
 ../mapGB/74220001.osm.pbf: no precompiled boundary information
available for raster tile 2800000_-250000
INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: ======= LocationHook Stats =====
INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: QuadTree searches    : 97834
INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: unsuccesfull         : 20
INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: unsuccesfull for ways: 9
INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: Location hook finished in 12747318 ms

The old version had similar lines, but the stats at the end are:

INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: ======= LocationHook Stats =====
INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: QuadTree searches    : 95639
INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: unsuccesfull         : 20
INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: unsuccesfull for ways: 9
INFO: uk.me.parabola.mkgmap.reader.osm.LocationHook 
 ../mapGB/74220001.osm.pbf: Location hook finished in 113704 ms

Ticker



More information about the mkgmap-dev mailing list