logo separator

[mkgmap-dev] Commit r4541: Simplify code, slightly improve performance

From svn commit svn at mkgmap.org.uk on Mon Jun 15 07:45:12 BST 2020

Version mkgmap-r4541 was committed by gerd on Mon, 15 Jun 2020

Simplify code, slightly improve performance 
OsmReadingHooks: replace onCoordAddedToWay() method by onNodeAddedToWay()
- now the method is (really) only called when a tagged node is added to a way
- the node is passed as argument, it will never be null.
The old code called the hook for every node, but no hook was interested in untagged nodes. Those hooks which implemented the method all used saver.getNode() to find the node which triggered the call. Now this is done only once in OsmHandler.


http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4541


More information about the mkgmap-dev mailing list