I teach the third required intro course in a CS department. One of my homework assignments asks students to speed up code they have written for a previous assignment. Fact
I would say something like Git might fit the bill:
Have a look at this site Git Magic or, even this tip site GitReady