Developers often have a desire to speed up their code to make it run more quickly. Some well-known advice on this topic, attributed to the programmer Michael A. Jackson, says:
Rules of Optimization:
Rule 1: Don't do it.
Rule 2: (for experts only) - Don't do it yet.
Sometimes a third rule is added…