Make expensive operations cheaper using a quick-and-dirty check. [Low-level Design Pattern] Context Performance is important. Forces You have a time-consuming operation. If only …, the operations wouldn’t be so expensive. Resolution Develop two versions of the operation: one that handles all complications, and another that deals with a common simple case. Devise a quick-and-dirty check […]