[Tile-serving] [openstreetmap/osm2pgsql] Rework multi-threading during indexing (#814)
Sarah Hoffmann
notifications at github.com
Sat Jan 13 21:47:35 UTC 2018
Use an Osmium worker pool instead of std::async and restrict the number of parallel instances to the number requested on the command line. Use the same pool for middle and output tables and make sure that the option --disable-parallel-indexing is also respected for middle tables.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/814
-- Commit Summary --
* rework multi-threading during indexing
-- File Changes --
M middle-pgsql.cpp (25)
M middle-pgsql.hpp (2)
M middle-ram.cpp (2)
M middle-ram.hpp (2)
M middle.hpp (4)
M osmdata.cpp (40)
M output-gazetteer.cpp (2)
M output-gazetteer.hpp (2)
M output-multi.cpp (4)
M output-multi.hpp (2)
M output-null.cpp (3)
M output-null.hpp (2)
M output-pgsql.cpp (24)
M output-pgsql.hpp (2)
M output.hpp (3)
M tests/mockups.hpp (4)
M tests/test-middle-flat.cpp (6)
M tests/test-middle-pgsql.cpp (21)
M tests/test-middle-ram.cpp (9)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/814.patch
https://github.com/openstreetmap/osm2pgsql/pull/814.diff
--
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/pull/814
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20180113/e442ecbe/attachment.html>
More information about the Tile-serving
mailing list