[Numpy-discussion] Adding `offset` argument to np.lib.format.open_memmap and np.load

Sturla Molden sturla at molden.no
Mon Feb 28 19:50:00 EST 2011


Den 01.03.2011 01:15, skrev Robert Kern:
> You can have each of those processes memory-map the whole file and
> just operate on their own slices. Your operating system's virtual
> memory manager should handle all of the details for you.

Mapping large files from the start will not always work on 32-bit 
systems. That is why mmap.mmap take an offset argument now (Python 2.7 
and 3.1.)

Making a view np.memmap with slices is useful on 64-bit but not 32-bit 
systems.

Sturla



More information about the NumPy-Discussion mailing list