[mkgmap-dev] patch to improve style throughput
From Gerd Petermann gpetermann_muenchen at hotmail.com on Thu Apr 26 11:09:46 BST 2018
Hi Steve, here is the improved version of the patch. It reduces the number of rules to be checked a bit more. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Gerd Petermann <gpetermann_muenchen at hotmail.com> Gesendet: Donnerstag, 26. April 2018 07:00:38 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] patch to improve style throughput Hi Steve, yes, would be good to separate those cases. I'll see if I can implement that. Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Steve Ratcliffe <steve at parabola.me.uk> Gesendet: Mittwoch, 25. April 2018 23:28:45 An: mkgmap-dev at lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] patch to improve style throughput Hi Gerd, > thanks for review, I've added a unit test to show why your version doesn't work. Yes, that doesn't work. Well, I'll just say what I was trying to do. With these rules: a=* {set b=2} b=1 [0x10404 resolution 24] and an element with a=1, it is not possible to match the b=1 rule, but it is still tried anyway. In this case changeableTags contains the full b=2 keystring so it ought to be possible to recognise that the second rule cannot match. ..Steve > I see no simple way to improve the index much more. I thought about a different approach: > Instead of doing all the calculations before any rule is really executed we might do this dynamically. > Each rule which changes or adds tags would point to a list of further rules which are to be checked. Only when such > a change really happens the additional rules are checked. > No idea if this can be implemented more efficiently than the current static index. _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev at lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- A non-text attachment was scrubbed... Name: tags3.patch Type: application/octet-stream Size: 2395 bytes Desc: tags3.patch URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20180426/225af72f/attachment.obj>
- Previous message: [mkgmap-dev] patch to improve style throughput
- Next message: [mkgmap-dev] patch to improve style throughput
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list