I wish I knew whose quote this was: "Use your intuition to ASK questions, not to answer them."
Specific to this topic:
Use a profiler to determine where you're spending your time. Don't guess; measure.
When you find a candidate area to work on, determine whether caching or a fundamental algorithm change could work. Those will usually get you far greater gains than optimizing code as-is.
Specific to this topic:
Use a profiler to determine where you're spending your time. Don't guess; measure.
When you find a candidate area to work on, determine whether caching or a fundamental algorithm change could work. Those will usually get you far greater gains than optimizing code as-is.