A summary of code optimization methods