Companies Home Search Profile

Python mmap: Doing File I/O With Memory Mapping

Focused View

Christopher Trudeau

41:38

98 View
  • 595 - 01 - intro.mp4
    03:11
  • 595 - 02 - mem.mp4
    08:08
  • 595 - 03 - mmap.mp4
    11:41
  • 595 - 04 - ops.mp4
    12:24
  • 595 - 05 - shared.mp4
    04:18
  • 595 - 06 - sum.mp4
    01:56
  • mmap.pdf
  • scripts.zip
  • Description


    The Zen of Python has a lot of wisdom to offer. One especially useful idea is that “There should be one—and preferably only one—obvious way to do it.” Yet there are multiple ways to do most things in Python, and often for good reason. For example, there are multiple ways to read a file in Python, including the rarely used mmap module.

    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.

    In this video course, you’ll learn:

    What You'll Learn?


    • What kinds of computer memory exist
    • What problems you can solve with mmap
    • How use memory mapping to read large files faster
    • How to change a portion of a file without rewriting the entire file
    • How to use mmap to share information between multiple processes

    More details


    User Reviews
    Rating
    0
    0
    0
    0
    0
    average 0
    Total votes0
    Focused display
    Category
    Christopher Trudeau
    Christopher Trudeau
    Instructor's Courses

    Christopher has a passion for the Python language and writes for Real Python. He is a consultant who helps advise organizations on how to improve their technical teams. Christopher is a strong advocate for automation throughout the delivery process and the power of small teams with well defined goals.

    You can find Christopher here:

    Learn Python online: Python tutorials for developers of all skill levels, Python books and courses, Python news, code examples, articles, and more.
    • language english
    • Training sessions 6
    • duration 41:38
    • Release Date 2023/01/05