Premature optimization is the…cure of all CPU timeouts? [closed]

According to Donald Knuth actually “is the root of all evil”.
But this doesn’t seem to hold true on the Force.com platform and its CPU time Limit.

After watching Paul Battisson’s Faster Loops videos it seems we should NOT care about readable, short Apex code but have to add complexity and weird optimizations to get enough done inside the limits.

The platform seems not to optimize the code in ways e.g. the Java compiler does it.

But why aren’t there official Apex best practices by Salesforce.com itself in the way: Optimize here or there?!

Whom would I turn to to find out where my code could be (dramatically) optimized?

Answer

Attribution
Source : Link , Question Author : Robert Sösemann , Answer Author : Community

Leave a Comment