I just read about mmap. If you set length to 0, it means the whole file will be read and stored into the mmap object. You are saying that the file can be more than 10GB. This will take time, the memory could be not enough. You have to read it in chunks. Also, it is said that you cannot create zero length mapping on Windows system. One more thing... Are you running this on x86 PC? The address space is 2**32 which is around 4GB. You can't map more than that.
Dealing with strings thru mmap in Python
Dealing with strings thru mmap in Python
|
|
Messages In This Thread |
Dealing with strings thru mmap in Python - by doublezero - Feb-27-2017, 09:07 PM
RE: Dealing with strings thru mmap in Python - by wavic - Feb-27-2017, 09:39 PM
RE: Dealing with strings thru mmap in Python - by doublezero - Feb-27-2017, 09:40 PM
RE: Dealing with strings thru mmap in Python - by wavic - Feb-27-2017, 10:21 PM
RE: Dealing with strings thru mmap in Python - by zivoni - Mar-01-2017, 06:33 PM
|
Users browsing this thread: 1 Guest(s)