1 — Memory Optimization
Purpose
[stub: memory-optimization]
Metadata
| Author | Amit Singh |
| Scope | low-level-design |
Local graph
Related notes
2 — Object Pooling
Reuses a fixed set of expensive-to-construct objects instead of allocating and discarding them, trading extra bookkeeping for reduced allocation churn.
3 — Lazy Initialization
Defers construction of a costly resource until its first actual use, at the cost of added complexity around thread safety and null checks.
4 — Caching Strategies
Compares eviction policies, invalidation triggers, and cache placement so repeated lookups can be served without recomputation or a round trip.
5 — Efficient Collections
Matches collection data structures to their access patterns so lookup, insertion, and iteration costs stay aligned with the workload's actual shape.