Flyweight

Official

Share objects to dramatically cut memory use.

Authormicrowind
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Flyweight pattern reduces memory usage by sharing intrinsic state across a large number of fine-grained objects, enabling scalable object creation and rendering.

Core Features & Use Cases

  • Shared intrinsic state to minimize memory footprint across millions of objects (e.g., font glyphs, icons, game particles).
  • Clear separation of intrinsic (shared) vs extrinsic (contextual) state to ensure safe reuse.
  • A lightweight factory or pool that reuses existing instances and prevents unnecessary duplication.

Quick Start

Create a FlyweightFactory and render many objects by supplying external state for each instance.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Flyweight
Download link: https://github.com/microwind/ai-skills/archive/main.zip#flyweight

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.