2 ms·
It says so in GoF. The example in the book is having an object represent each character on the screen. You don't want to pay the overhead of an object for each
by fusiongyro 10y ago
It says so in GoF. The example in the book is having an object represent each character on the screen. You don't want to pay the overhead of an object for each byte in a file, so you use flyweight to share all the instances of each character.