Skip to content

nikki-dong/mmap-RAII

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

MmapFile is a class that uses mmap() to read files. It is a header only class that can be easily included in your projects.

When normally reading files from disk, kernel first copies from disk to buffer cache, then copies from buffer cache to user space program. It quickly slows down your program if you only need on-pass file read.

mmap() on the other hand, can avoid extra copies to the buffer cache, by mapping files to memory up front.

About

Config files for my GitHub profile.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages