mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 12:58:37 +00:00
title, shortTitle, category, language, tag
| title | shortTitle | category | language | tag | ||
|---|---|---|---|---|---|---|
| Dirty Flag | Dirty Flag | Behavioral | ar |
|
Also known as
- IsDirty pattern
Purpose
Avoid the costly re-acquisition of resources. Resources retain their identity, are stored in some fast-access storage, and are reused to avoid having to acquire them again.
Class Diagram
Applicability
Use the Dirty Flag pattern when
- The repetitive acquisition, initialization, and release of the same resource causes unnecessary performance overhead.
