How to open and read LZMA file in-memory

前端 未结 2 770
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-12 09:24

I have a giant file, let\'s call it one-csv-file.xz. It is an XZ-compressed CSV file.

How can I open and parse through the file without first decomp

2条回答
  •  死守一世寂寞
    2021-01-12 10:04

    You can decompress incrementally. See Compression using the LZMA Algorithm. You create an LZMADecompressor object, and then use the decompress method with successive chunks of the compressed data to get successive chunks of the uncompressed data.

提交回复
热议问题