[Tile-serving] [openstreetmap/osm2pgsql] Skip transforms for untagged objects (#706)

Paul Norman notifications at github.com
Thu Mar 9 03:03:16 UTC 2017


>From ClearTables/ClearTables#109

A full featured multi-transform can easily contain 10+ point tables. Reasonably written transforms will exit in tens or hundreds of ns, but the cost of calling 10 transforms adds up for 4b nodes. 97% of nodes have no tags and will be filtered out by any transform I can think of.

Skipping these untagged nodes in C++ would be faster than calling to Lua and skipping them. Although the performance is mainly an issue with the multi-backend, I propose also doing it for the pgsql backend with lua transforms. The C backend already skips untagged nodes under all possible style files, but it's worth checking that it skips it early in the transform to avoid unnecessary work.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/issues/706
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170308/14bad145/attachment.html>


More information about the Tile-serving mailing list