mirror of
https://github.com/JakubVojvoda/design-patterns-cpp.git
synced 2025-12-18 05:14:36 +03:00
update READMEs
This commit is contained in:
12
flyweight/README.md
Normal file
12
flyweight/README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
## Flyweight
|
||||
|
||||
Use sharing to support large numbers of fine-grained objects efficiently.
|
||||
|
||||
### When to use
|
||||
|
||||
* when all of the following are true
|
||||
* an application uses a large number of objects
|
||||
* storage costs are high because of the sheer quantity of objects
|
||||
* most object state can be made extrinsic
|
||||
* many groups of objects may be replaced by relatively few shared objects once extrinsic state is removed
|
||||
* the application doesn't depend on object identity
|
||||
Reference in New Issue
Block a user