The Flyweight: Shared VRAM Anchors
Index into immutable shared pools of memory rather than duplicating data.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Flyweight
ARCANUM SCHOOL: Abjuration // Geometry
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
let flyweight_process [n][m] (shared_pool: [m]i32) (indices: [n]i64) : [n]i32 =
map (\i -> if i >= 0 && i < m then shared_pool[i] else 0) indices
Runic Tags:
#futhark
#flyweight
#optimization