[Tile-serving] [openstreetmap/osm2pgsql] Refactor of way/relation "cache" in flex output (PR #1665)
Jochen Topf
notifications at github.com
Tue Mar 22 14:07:00 UTC 2022
This refactors the somewhat difficult to understand code in the flex output that handles getting and caching ways and their nodes, and relations and their members. The changes are in several steps, each in their own commit.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/1665
-- Commit Summary --
* Refactor: Use m_calling_context for decisions inside flex output
* More consistent use of m_context_relation/m_rels_buffer
* Factor out common "relation cache" code into init_relation_cache()
* Refactor: New function output_flex_t::add_members_to_relation_cache()
* Refactor: Explicit cache functions for ways, too
* Factor out caching of context ways/relations into their own class
* Only get relation members when we haven't got them already
-- File Changes --
M src/output-flex.cpp (186)
M src/output-flex.hpp (61)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/1665.patch
https://github.com/openstreetmap/osm2pgsql/pull/1665.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1665
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/1665 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220322/f90b67a3/attachment.htm>
More information about the Tile-serving
mailing list