Computing Atlas

How Computing Was Built
Sign In
Text size
100%
Theme
Concept

Flyweight Pattern

Technique

A Gang of Four structural design pattern that reduces memory use by sharing as much data as possible between many similar objects, separating the data that can be shared from the data unique to each individual object.

Facts
Origin Year
1990 1
Core Principle
Minimizes memory use by sharing as much data as possible with other similar objects, holding shared state externally and passing it to lightweight objects only when needed. 1
Connections

Associated With

Erich Gamma, Pioneers

Erich Gamma co-authored the 1994 Design Patterns book that named and catalogued the Flyweight pattern among the original 23.

In Field

Sources
1. Wikipedia: Flyweight Pattern
Wikimedia Foundation
  • Lead section, history sentence
    The concept was coined and first extensively explored by Paul Calder and Mark Linton in 1990 to efficiently handle glyph information in a WYSIWYG document editor.
  • Lead section, first sentence
    the flyweight software design pattern refers to an object that minimizes memory usage by sharing some of its data with other similar objects.
View the Source
Comments (0)
No comments yet. Be the first to share a thought.
Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.