flyweight-intrinsic-vs-extrinsic-state

Status: IN

In the Flyweight pattern, extrinsic state (such as font information) is stored externally rather than in the shared flyweight objects themselves — for example, GlyphContext uses a BTree to map glyph indices to fonts, keeping this state proportional to font-change frequency rather than character count, while Character flyweights are shared and cached by the GlyphFactory.

Source: entries/2026/06/17/gof-oo-chunk-14.md

Depended on by

JSON