General principles for increasing speed and efficiency of programs are developed in a series of experiments on two simple problems. Some insights into how Mathematica works are found along the way.