osm2pgsql-dev / osm2pgsql

OpenStreetMap data to PostgreSQL converter
https://osm2pgsql.org
GNU General Public License v2.0
1.48k stars 473 forks source link

Refactor area assembler #2224

Closed joto closed 1 month ago

joto commented 1 month ago

The area assembler code we were using from libosmium was doing a few unnecessary things. This implements our own class which only does what's necessary.

We also reuse the memory buffer where we assemble the areas, which saves us from constant memory allocations.

Will not have a huge impact, but doing less work is always good.