[Tile-serving] [openstreetmap/osm2pgsql] Use a global buffer for middle-pgsql (#635)
Sarah Hoffmann
notifications at github.com
Thu Oct 27 19:13:23 UTC 2016
Replaces the different static and malloc'd buffers for psql input with one global buffer. The same buffer is now used for copy mode and insert mode. We just track the beginning of each item for insert mode in the paramValues array.
This is more for cleanup, the gain in processing time is minimal.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/osm2pgsql/pull/635
-- Commit Summary --
* middle-pgsql: replace various string buffers with one global copy buffer
* remove unused psql_CopyData variants
-- File Changes --
M middle-pgsql.cpp (415)
M middle-pgsql.hpp (9)
M pgsql.cpp (6)
M pgsql.hpp (11)
-- Patch Links --
https://github.com/openstreetmap/osm2pgsql/pull/635.patch
https://github.com/openstreetmap/osm2pgsql/pull/635.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/635
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20161027/892f67d9/attachment.html>
More information about the Tile-serving
mailing list