[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Re: using mmap on large (> 2 Gig) files
From:       "Martin_v._Löwis" <martin () v ! loewis ! de>
Date:       2006-10-24 17:31:45
Message-ID: 453E4E01.9050304 () v ! loewis ! de
[Download RAW message or body]

sturlamolden schrieb:
> Looking at Python's source (mmapmodule.c), it seems that "mmap.mmap"
> always sets the offset argument in Windows MapViewOfFile and UNIX to 0.
> This means that it is always mapping from the beginning of the file.
> Thus, Python's mmap module is useless for large files. This is really
> bad coding. The one that wrote mmapmodule.c didn't consider the
> posibility that a 64 bit file system like NTFS can harbour files to
> large to fit in a 32 address space. Thus,
> mmapmodule.c needs to be fixed before it can be used for large files.

You know this isn't true in general. It is true for a 32-bit address
space only.

Regards,
Martin
-- 
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic