Skip to content

Replace caching with memory mapping #15

Description

@BitPaw

Memory mapping avoids unneeded allocation for the read-cache. Additionally the file itself does not need to be loaded at all.
The operating system will handle it for you.

Memory advicing (madvice) may be a good addition here.

UNIX
https://man7.org/linux/man-pages/man2/mmap.2.html

Windows
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createfilemappinga

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

UnixUnix operating systemWindowsWindows Operating System

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions