Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
332 views
in Technique[技术] by (71.8m points)

Unpack msgpack with Python in chunks

I have a huge msgpack file (approx. 50 Gb) which I want to unpack with Python. Obviously, I do not want to load everything into memory, thats why I want to unpack in chunks / batches. Is this possible using for example the pip msgpack module?

I tested out the streaming unpacker, but this one is unpacking the entire file in one chunk.

question from:https://stackoverflow.com/questions/65904638/unpack-msgpack-with-python-in-chunks

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...