2022 Developer Survey is open! Take survey.

Questions tagged [mmap]

For code that uses memory-mapped files.

Filter by
Sorted by
Tagged with
4 votes
1 answer
117 views

Simple parallel compression using Run-length Encoding in C

I encountered the concurrency-zip project in OSTEP By Remzi Arpaci-Dusseau. So basically, I've built a simple compression program that uses Run-length Encoding, and multi-threading in C. But I couldn'...
11 votes
2 answers
2k views

C - Fast & simple bump allocator

I recently have been very interested in custom allocators, so I decided to make the very basic (this should be faster than malloc) bump allocator. Here is my code ...
3 votes
1 answer
86 views

Code dealing with files and separate lines in them

I have been using similar piece of code since a while. I have read some issues regarding treating mapped memory as a string. I am not sure about that though, so I just use ...