Share What's Expensive

Share What's Expensive: Object Pool and Lazy Loading: Make It Once, Share It, or Make It Late.

Updated

  1. Object Pool and Lazy Loading: Make It Once, Share It, or Make It Late (Journeyman): When something slow to make is made for every request, or something big is made at the start and hardly used, the app slows down or runs out; an object pool makes a few and lends them out and back, and lazy loading makes a thing the first time it's needed, then keeps it.