Student Reviews
( 5 Of 5 )
1 review
Video of Flyweight Design Pattern in Design Patterns course by Derek Banas channel, video No. 19 free certified online
Get the Code: http://goo.gl/XmRUy
Welcome to my Flyweight Design Pattern Tutorial! The flyweight design pattern is used to dramatically increase the speed of your code when you are using many similar objects.
To reduce memory usage the flyweight design pattern shares Objects that are the same rather than creating new ones. In this tutorial, I'll create 100,000 rectangles and show you the difference in speed versus creating unique rectangle objects versus the flyweight design.