filemapping
File mapping, commonly called memory-mapped file, is a mechanism that maps a file or a portion of a file into a process’s address space. Once mapped, the file contents can be accessed through ordinary memory reads and writes as if they resided in RAM. The operating system handles paging data in and out of disk, and changes may be propagated back to the file depending on the mapping mode and permissions.
Implementation varies by platform. In Windows, the process uses APIs such as CreateFileMapping and MapViewOfFile to
Benefits include reduced data copying since I/O can occur via the page cache, simplified access to large
Common considerations or limitations include platform-specific behavior, synchronization requirements for shared mappings, and potential page faults