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

Limit memory usage #5

Closed
mfogel opened this issue Mar 16, 2018 · 2 comments
Closed

Limit memory usage #5

mfogel opened this issue Mar 16, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@mfogel
Copy link
Owner

mfogel commented Mar 16, 2018

When processing many inputs that don't all fit in node's default heap size, rather than just crash with an out-of-memory error it would be better to read in a subset of the inputs, process those, then read in another set of inputs, process those, etc.

@mfogel mfogel added the enhancement New feature or request label Mar 16, 2018
@mfogel
Copy link
Owner Author

mfogel commented Mar 17, 2018

Turns out on my primary use case (subtracting water areas from geopolitical shapes) this only results in about a 10% improvement in memory usage, because the water areas aren't overlapping.

As such I'll leave this tagged on a branch but won't be merging it into master.

@mfogel mfogel closed this as completed Mar 17, 2018
@mfogel
Copy link
Owner Author

mfogel commented Mar 17, 2018

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

No branches or pull requests

1 participant