S2 buffer Calculation memory is not released #323
Unanswered
LemonLiTree
asked this question in
Q&A
Replies: 3 comments 5 replies
-
Are you re-using the S2BufferOperation object? Most of the memory used should be in the S2Polygon instance you're passing in, is that not the case? |
Beta Was this translation helpful? Give feedback.
2 replies
-
If it's in a function all those objects should get cleaned up and their memory with them, I'd be surprised if we had a large memory leak in S2BufferOperation. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use S2BufferOperation to calculate a s2point buffer, the code is as follows
Running this code, I get the correct result.
However, when the amount of data I want to calculate is large, for example, I want to calculate 10,000 S2point buffers, this code will be called 10,000 times in a loop, and the memory usage will be high after running and will not be released.
Does the calculation here do data caching? Is there any way to release the memory in time?
Beta Was this translation helpful? Give feedback.
All reactions