[Tile-serving] [osm2pgsql] Use std::vector for tags, members and nodes (#331)
Sarah Hoffmann
notifications at github.com
Sun Apr 12 20:13:19 UTC 2015
Replaces keyval and other manually malloc'd lists with vectors. Make output data from parser const and simply create new vectors for taglists when they need to be changed.
Also optionally enables C++11 in configure where available but still without using any C++11 syntax in the code. This gives us move semantics for vectors where available which improves performance slightly.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/331
-- Commit Summary --
* new types for keyval and for tag, member and node lists
* enable c++11 when available
-- File Changes --
M Makefile.am (2)
M configure.ac (2)
M expire-tiles.cpp (113)
M expire-tiles.hpp (8)
M geometry-builder.cpp (105)
M geometry-builder.hpp (15)
M geometry-processor.cpp (92)
M geometry-processor.hpp (27)
M id-tracker.hpp (1)
D keyvals.cpp (144)
D keyvals.hpp (64)
M middle-pgsql.cpp (451)
M middle-pgsql.hpp (23)
M middle-ram.cpp (212)
M middle-ram.hpp (31)
M middle.cpp (12)
M middle.hpp (31)
M node-persistent-cache-reader.cpp (34)
M node-persistent-cache.cpp (73)
M node-persistent-cache.hpp (3)
M node-ram-cache.cpp (68)
M node-ram-cache.hpp (12)
M options.hpp (3)
M osmdata.cpp (30)
M osmdata.hpp (21)
M osmtypes.hpp (98)
M output-gazetteer.cpp (202)
M output-gazetteer.hpp (52)
M output-multi.cpp (114)
M output-multi.hpp (22)
M output-null.cpp (12)
M output-null.hpp (12)
M output-pgsql.cpp (206)
M output-pgsql.hpp (23)
M output.hpp (14)
M parse-o5m.cpp (62)
M parse-pbf.cpp (341)
M parse-pbf.hpp (15)
M parse-xml2.cpp (94)
M parse-xml2.hpp (6)
M parse.cpp (69)
M parse.hpp (56)
M processor-line.cpp (4)
M processor-line.hpp (2)
M processor-polygon.cpp (8)
M processor-polygon.hpp (4)
M table.cpp (50)
M table.hpp (14)
M tagtransform.cpp (441)
M tagtransform.hpp (31)
M tests/middle-tests.cpp (63)
M tests/test-parse-xml2.cpp (37)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/331.patch
https://github.com/openstreetmap/osm2pgsql/pull/331.diff
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/331
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20150412/3b116378/attachment.html>
More information about the Tile-serving
mailing list