Apply Flyweight Pattern

Use when an application creates a very large number of fine-grained objects whose combined memory cost is prohibitive — by sharing the intrinsic (immutable) state across instances and storing only extrinsic (context-specific) state outside.

jeffreytse Updated
grimoire

File contents

jeffreytse/grimoire-core commit 68093adba9

Frequently asked questions

npx get-skill add jeffreytse/apply-flyweight-pattern