Mike Liu 2207ea4ce9
Translation zh (#1646)
* add state and callback pattern

* add command and template-method pattern

* add iterator pattern

* add bridege and DI pattern

* fix issue #1600

* add converter,proxy,visitor pattern

* add caching,composite,delegation,dirty-flag,interpreter patterns

* add dao and producer-consumer

* add dto and provate class data pattern

* fix #1646 png path problems

* fix #1646 composite png path case problem

Co-authored-by: Mike <admin@xiaod.info>
Co-authored-by: Subhrodip Mohanta <hello@subho.xyz>
2021-02-08 21:07:48 +05:30
..
2021-02-08 21:07:48 +05:30

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern Dirty Flag dirty-flag /patterns/dirty-flag/ Behavioral
Game programming
Performance

或称

  • 是否脏 模式

目的

避免昂贵资源的重新获取。资源保留其身份,保留在某些快速访问的存储中,并被重新使用以避免再次获取它们。

类图

alt text

适用性

在以下情况下使用脏标志模式

  • 重复获取,初始化,释放相同资源所导致不必要的性能开销

鸣谢