[mkgmap-dev] [PATCH v1] quick distance calculation
From Mark Burton markb at ordern.com on Sat May 16 18:54:31 BST 2009
Folks, OK, so the parallelisation code has not been very successful so far but we can still speed up mkgmap. You have probably noticed that it spends a huge proportion of its time in Math.acos() which is being called from Coord.distance(). The attached patch renames distance() to slowDistance() and introduces a new quickDistance() function that is based on the code that was in the MultipolygonRelation class. I have tested quickDistance() against slowDistance() and for maps in the UK and Germany it produces distances that are very similar (within 0.5% or better). It is substantially faster and so I believe we should change to using it as long as it doesn't introduce any issues. So please try out this patch and report: a - if any breakage is observed b - performance increase/decrease Cheers, Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: mb-quick-distance-v1.patch Type: text/x-patch Size: 3395 bytes Desc: not available Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20090516/c2fe4da2/attachment.bin
- Previous message: [mkgmap-dev] Commit: r1038: Don't share inner ways between all multi-polygon relations.
- Next message: [mkgmap-dev] [PATCH v1] quick distance calculation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list