2 ms·
It'll be flushed to disk within seconds. I agree in a memory-rich environment it's far from the worst idea. However now you need to manage the files. You've ju
by barrkel 10y ago
It'll be flushed to disk within seconds.
I agree in a memory-rich environment it's far from the worst idea. However now you need to manage the files. You've just pushed the problem somewhere else.
- dom0 10y agoEvery OS has flags for this. Windows' CreateFile has a _TEMPORARY flag and most unixes have something like O_TMPFILE. These avoids flushing them to disk, even on a background writer timeout (Linux/Windows). Further, on many *nix systems /tmp and the like are often in-memory FSes.