[Tile-serving] [openstreetmap/osm2pgsql] Do not reuse Osmium buffer (PR #1664)

Jochen Topf notifications at github.com
Sat Mar 19 14:46:40 UTC 2022


This cleans up a bit of confusing code. We were reusing the m_buffer
member in two places where a local Buffer object is fine. The idea
was to save a memory allocation here for the local Buffer, but is
probably not worth it and muddies up what the m_buffer is actually
used for.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/osm2pgsql/pull/1664

-- Commit Summary --

  * Do not reuse Osmium buffer

-- File Changes --

    M src/output-flex.cpp (14)

-- Patch Links --

https://github.com/openstreetmap/osm2pgsql/pull/1664.patch
https://github.com/openstreetmap/osm2pgsql/pull/1664.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1664
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/pull/1664 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220319/a24bdce9/attachment.htm>


More information about the Tile-serving mailing list