Erm, (using the GoF example of flyweights for characters) if you compare several thousand individual instances of class Letter { char myLetter; } scattered all over the heap versus having several thousand Letter * pointers to the same set of 128/256/n instances living inside the flyweight class it most certainly will use less memory.
In reply to Re^3: Doubt about fly-weight objects.
by Fletch
in thread Doubt about fly-weight objects.
by blazar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |