Code tuning in these areas can be used to increase performance:
Loops
Convert expr to table lookup
Caching
Result pre-computation
Lazy evaluation
Class vs. object initialization