Flyweight Pattern
Version 1.0.0 · Updated 2026-07-30
CORE DEFINITION
A design pattern that reduces memory usage by sharing as much data as possible. It divides object state into intrinsic state (shareable) and extrinsic state (non-shareable).
SCAFFOLDING EFFECT
Reduce cognitive load
Optimize resource allocation. When dealing with a large number of similar tasks or objects, extract the invariant 'common denominator' for reuse, and handle only the differences separately to reduce system load.
Anchor fast decisions
Reduce memory/resource usage by sharing the common parts of a large number of fine-grained objects, replacing repetition with sharing.
MINIMUM ACTION
In progress 0/1Practice this model in one real situation:
account_treeGenealogyexpand_more
menu_bookReferencesexpand_more
Source support: Explicit
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Flyweight_patternverified
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS