Skip to content

Purpose: Reduces memory usage by sharing common data across multiple objects instead of replicating/copying it.

Notifications You must be signed in to change notification settings

RKrumova/Flyweight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation


Flyweight Pattern

The Flyweight pattern is primarily used to reduce the number of objects created and to decrease memory footprint and increase performance. This type of design pattern comes under the structural pattern category, as it provides ways to decrease object count, thus improving the object structure of an application.

Flyweight pattern tries to reuse already existing similar kind objects by storing them and creates a new object when no matching object is found.

About

Purpose: Reduces memory usage by sharing common data across multiple objects instead of replicating/copying it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages