Flyweight
Intent: Share common state between many fine-grained objects to save memory.
When to use it
- Huge numbers of similar objects
- Particles, glyphs, map tiles
Example
Thousands of identical tiles or furniture symbols in a large plan.
Intent: Share common state between many fine-grained objects to save memory.
Thousands of identical tiles or furniture symbols in a large plan.