- Move code into helper methods - Don't create a large number of temporary variables in that method - Use xdebug and cachegrind?