mmap — Memory-map Files — PyMOTW 3
Originally posted
· 1 min read
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.
This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.