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
python takes long time when return big data #91127
Comments
it takes a long time when python return big data. |
This is expected. Your timing measures the time for garbage collection of the large arrays in addition to the time for the result to be returned. In the line You can test this by adding a "del result" line as the last line inside the "for" loop block. |
thanks for your explaining, by the way, why it costs lots of time when del |
I am currently processing large data, and the time spent by del is unacceptable. Is there any way to process del in parallel? |
That's probably a question for the NumPy folks, or possibly for Stack Overflow or some other question-and-answer resource. It'll depend on how NumPy arrays are de-allocated.
Seems unlikely, given GIL constraints. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: