Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

free SHPObject when done with it #568

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

cldellow
Copy link
Contributor

@cldellow cldellow commented Nov 5, 2023

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 systemed merged commit fcec727 into systemed:master Nov 5, 2023
5 checks passed
@systemed
Copy link
Owner

systemed commented Nov 5, 2023

Very good spot - thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants