Here is an interesting blog post by Kevin Rosenberg that shows some of the power and efficiency you can gain by refactoring your code. This example specifically applies to Lisp, but the ideas hold true for other languages as well. Especially the idea of breaking up long functions.