mmap — Memory-map Files — PyMOTW 3

Memory-mapping a file uses the operating system virtual memory system to access the data on the file system directly, instead of using normal I/O functions. Memory-mapping typically improves I/O performance because it does not involve a separate system call for each access and it does not require copying data between buffers – the memory is accessed directly by both the kernel and the user application.

Read more…

This post is part of the Python Module of the Week series for Python 3. See for more articles from the series.