-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
Memory leak copy_stream #63
Comments
I looked a bit further and saw that |
Using Try using a |
Thank you for your suggestion it works. def write_pkl(data, file):
with open(file, 'wb') as f:
cctx = zstd.ZstdCompressor()
with cctx.stream_writer(f) as compressor:
pickle.dump(data, compressor) |
This is similar to #35 and #40. With zstandard 0.10.2 and Python 3.6.0.
The data input is a list with ~270000 tuples with Numpy arrays and single numbers. No bytes are written with such a large array but with smaller arrays it works fine. It was working for me with an array of ~200000 long.
My memory consumption goes from ~1.5 GB while creating the array to +35 GB when
write_pkl
is executed.The text was updated successfully, but these errors were encountered: