Skip to content

Conversation

evetion
Copy link
Collaborator

@evetion evetion commented Apr 20, 2022

Triggered by out of memory errors when working with a lot of GeoDataFrames.

It seems that iterate just allocates Features without anyone ever cleaning them. This PR introduces an IFeature (and its parent AbstractFeature), which should align nicely with the other types.

Since GeoDataFrames goes through quite some calls, it is a bit hard to find these things, but I expect this is not the only memory leak remaining.

@yeesian
Copy link
Owner

yeesian commented Apr 21, 2022

Thank you for catching this! Opened #295 so that comprehensive scrubbing of the codebase isn't blocking this fix from being merged.

I still have some concern that we might be introducing a different bug with this change, and will be happy to merge once that's answered/addressed. The rest LGTM.

Copy link
Owner

@yeesian yeesian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me now! I won't auto-merge in case you have anything else you want to add it to it. Feel free to merge if there's nothing else.

@evetion evetion merged commit 21e2300 into master Apr 22, 2022
@evetion evetion deleted the fix/memory branch April 22, 2022 07:13
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