|
-
January 11th, 2009, 03:31 PM
#6
Re: Flyweight Pattern
http://www.developer.com/design/article.php/3677501
If I use the flyweight pattern so that I only store unique Time instances, I can reduce the maximum number of typical time objects to 96 (24 hours times four possible times per hour). The appointment application will still support odd times, but predictable use suggests that flyweight will dramatically minimize object creation and memory usage.
When we use flyweight we share common data between objects,Which data in these objects iin this example are similar that he share?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|