* Fix languages * Missed change for version number * Add language field for presentation * Revert change in README for double buffer Co-authored-by: Jackie Nim <=>
layout, title, folder, permalink, categories, language, tags
layout | title | folder | permalink | categories | language | tags | ||
---|---|---|---|---|---|---|---|---|
pattern | Dirty Flag | dirty-flag | /patterns/dirty-flag/ | Behavioral | en |
|
Also known as
- IsDirty pattern
Intent
To avoid expensive re-acquisition of resources. The resources retain their identity, are kept in some fast-access storage, and are re-used to avoid having to acquire them again.
Class diagram
Applicability
Use the Dirty Flag pattern when
- Repetitious acquisition, initialization, and release of the same resource causes unnecessary performance overhead.