[Numpy-discussion] Memory mapping and NPZ files

Sturla Molden sturla.molden at gmail.com
Fri Dec 11 05:22:09 EST 2015


Mathieu Dubois <mathieu.dubois at icm-institute.org> wrote:

> The point is precisely that, you can't do memory mapping with Npz files 
> (while it works with Npy files).

The operating system can memory map any file. But as npz-files are
compressed, you will need to uncompress the contents in your memory mapping
to make sense of it. I would suggest you use PyTables instead of npz-files.
It allows on the fly compression and uncompression (via blosc) and will
probably do what you want.

Sturla




More information about the NumPy-Discussion mailing list