Flyweight is one of structural design patterns. It is used to decrease the amount of used memory by sharing as much data as possible with similiar objects. This document will teach you how to use Flyweight DP properly.
Let me explain the idea of it to you on a simple example. Imagine you're working...