3 ms·
> but using mmap() is a no-brainer for fast file access and I'm surprised they hadn't used it before. Is it always? I remember benchmark sequential file reads
by rdtsc 14y ago
> but using mmap() is a no-brainer for fast file access and I'm surprised they hadn't used it before.
Is it always? I remember benchmark sequential file reads and writes and plain old read and write were sometimes faster or there was no difference.
- minimax 14y agoI think a lot of people get bit by small stdio buffers and switch to mmap, not realizing that read() based solutions can be improved greatly by better buffering strategies.
- deleted 14y ago[deleted]