Understanding performance optimization pdf