Skip to content

Commit 8042136

Browse files
committed
Add flyweight pattern (just comments)
1 parent 995765e commit 8042136

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

flyweight-pattern.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* What is the flyweight design pattern?
3+
*
4+
* - Used when you need to create a large number of similar objects
5+
* - To reduce memory usage you share Object that are similar in some way
6+
* rather than creating new ones
7+
*
8+
* @see http://www.newthinktank.com/2012/10/flyweight-design-pattern-tutorial/
9+
*/

0 commit comments

Comments
 (0)