Very nice text describing how to optimize the Gentoo emerge for a faster source compiling.

http://en.gentoo-wiki.com/wiki/Speeding_up_emerge_with_tmpfs