File I/O With Memory Mapping Using Python mmap

preview_player
Показать описание
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:

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
Рекомендации по теме
Комментарии
Автор

mmap is still the best way to do high volume inter-process communication without having a bunch of context switching.

LarryRiedel
Автор

Can it be used for Video Game Development?

SkyFly
Автор

normal reading process and mmap both load file to memory. What is the difference after all?

looploop
visit shbcf.ru