TLDR · PROGRAMMING, DESIGN & DATA SCIENCE
SAVE YOUR DISK, WRITE FILES DIRECTLY INTO RAM WITH /DEV/SHM
Summary from the TLDR newsletter
/dev/shm is a world-accessible RAM scratchpad available in virtually every Unix (Linux system already has it mounted as a tmpfs by default). Files in the folder perform much better as they are running in RAM. The folder is cleared on reboot.