Python’s mmap provides memory-mapped file input and output (I/O). It allows you to take advantage of lower-level operating system functionality to read files as if they were one large string or array. This can provide significant performance improvements in code that requires a lot of file I/O.
This is a portion of the complete course, which you can find here:
realpython.com...
The rest of the course covers:
- mmap Operations
- Accessing shared memory
- How to change a portion of a file without rewriting the entire file
- How to use mmap to share information between multiple processes
Негізгі бет File I/O With Memory Mapping Using Python mmap
No video
Пікірлер: 4