2 ms·
or use calloc. Or just zero the whole buffer the first time: both mmap and calloc will have to zero on first use anyway, but future resets won't need zeroing.
by gpderetta 3y ago
or use calloc. Or just zero the whole buffer the first time: both mmap and calloc will have to zero on first use anyway, but future resets won't need zeroing.
Or use optimization barriers as described elsethread.