ELI5: Explain Like I'm 5

Flyweight pattern

The Flyweight pattern is a way to make computer programs use less memory. It helps when you have lots of objects that take up a lot of memory, like pictures on a screen.

The Flyweight pattern makes several of the same objects share the same memory. This way, instead of having lots of copies of the same object, they all point to the same one in memory. This helps free up memory, so the program can use it to do more things at one time.
Related topics others have asked about: