using mmap on large (> 2 Gig) files
sturlamolden at yahoo.no
Tue Oct 24 02:18:45 CEST 2006
Martin v. Löwis wrote:
> What architecture are you on? On a 32-bit architecture, it's likely
> impossible to map in 2GiB, anyway (since it likely won't fit into the
> available address space).
Indeed. But why does Python's memory mapping need to be flushed? And
why doesn't Python's mmap take an offset argument to handle large
files? Is Python actually memory mapping with mmap or just faking it
with fseek? If Python isn't memory mapping, there would be no limit
imposed by the 32 bit address space.
More information about the Python-list