systemed / tilemaker

Make OpenStreetMap vector tiles without the stack
https://tilemaker.org/
Other
1.44k stars 229 forks source link

free SHPObject when done with it #568

Closed cldellow closed 10 months ago

cldellow commented 10 months ago

It looks like Tilemaker converts shapefile objects into its own representation, after which point I think we can safely free the shape objects. I don't think SHPClose is sufficient to free the individual objects.

For the shapefiles used by the Shortbread tile set (1.4GB of coastline .shp files), this seems to decrease peak memory usage by ~1.7G

systemed commented 10 months ago

Very good spot - thank you!