Flyweight
This lesson discusses how the flyweight pattern can be applied to reduce memory requirements.
We'll cover the following
What is it ?
Flyweight is a category in boxing competitions for light weight boxers. The intent of the pattern is somewhat similar in that it tries to reduce bloated code to a more compact and lean representation, which uses less memory.
Formally, the pattern is defined as sharing state among a large number of fine-grained objects for efficiency.
Get hands-on with 1200+ tech skills courses.