Hacker News new | past | comments | ask | show | jobs | submit login

If you write a file to disk, then wait fifteen minutes before deleting it, chances are the OS will have flushed it to disk sometime in the meantime. It won't have to re-read it if there's still free memory, but it's extra load on disk io.

If you write a lot of them, then even if you have the memory, you may overrun the size limit of the write buffer and cause application stalls.

Writing to a ramdisk (e.g. tmpfs) is always an option, though.




Every OS has flags for this. Windows' CreateFile has a _TEMPORARY flag and most unixes have something like O_TMPFILE.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: