What are some good code optimization methods?

Posted by esac on Stack Overflow See other posts from Stack Overflow or by esac
Published on 2009-05-21T22:28:07Z Indexed on 2010/05/21 10:40 UTC
Read the original article Hit count: 237

I would like to understand good code optimization methods and methodology.

  1. How do I keep from doing premature optimization if I am thinking about performance already.
  2. How do I find the bottlenecks in my code?
  3. How do I make sure that over time my program does not become any slower?
  4. What are some common performance errors to avoid (e.g.; I know it is bad in some languages to return while inside the catch portion of a try{} catch{} block

© Stack Overflow or respective owner

Related posts about Performance

Related posts about language-agnostic