intrinsic state
-
FlyweightModeling/DesignPattern 2020. 2. 28. 23:13
1. Overview Our system needs a large number of objects of a particular class and maintaining these instances is a performance concern. Flyweight allows us to share an object in multiple contexts. But instead of sharing the entire object, which may not be feasible, we divide the object state into two parts. intrinsic (the state that is shared in every context) and extrinsic state (context-specifi..