Does anyone have a specific example of using the Flyweight Pattern?
Posted
by
Jeremy E
on Programmers
See other posts from Programmers
or by Jeremy E
Published on 2011-09-15T20:36:43Z
Indexed on
2014/05/28
22:03 UTC
Read the original article
Hit count: 172
design-patterns
I have been studying design patterns and came accross the fly weight pattern. I have been trying to see opportunities to use the pattern in my applications but I am having trouble seeing how to use it. Also, what are some signs that a fly weight pattern is being used when I read other peoples code?
According to the definition it says:
Use sharing to support large numbers of fine-grained objects efficiently.
If I read it right Dictionaries and Hashtables could be instances of fly weights is this correct?
Thanks in advance.
© Programmers or respective owner