My laptop is equipped with a reasonable amount of memory (8 Gb), never used in its entirety. Surplus memory can be used, for example, for memory file systems, and /tmp in particular. Simply edit /etc/fstab and comment the /tmp line if exists. After that add a new line like:
#/tmp 512Mb Memory File System
swap /tmp mfs rw,noatime,nodev,nosuid,-s=1024000 0 0
The size is expressed in sectors. Normally a sector is 512 bytes.
The change will be effective on next reboot or unmounting/mounting /tmp (be careful if there is daemons or applications using it).