I have more RAM than I need, and just the other day I set up a RAM disk to put my /tmp directory on. My comic reader unpacks huge rar and zip archives into /tmp at every run, and I don't want it to wear out my SSD. I put this line in /etc/fstab:
none /tmp tmpfs defaults,size=4G 0 0
It works like a charm. And in the worst case, if I run out of RAM anyway, it readily swaps out.