The flyweight pattern is a design pattern that is used to minimise resource usage when working with very large numbers of objects. When creating many thousands of identical objects, non-stateful flyweights can lower the memory used to a manageable level.
...
Go to the complete details ...