Try all manner of compilation flags to optimize compiling from source.
This only works on source code packages that follow the GNU build conventions, and which also include a 'make check' target. Run this script within the un-tarred source directory. And wait. A long time...