flyweight pattern
常見例句
- For example, the State pattern often harmononizes with the Flyweight and Singleton patterns.
例如,狀態(tài)模式經(jīng)常與Flyweight 和 Singleton 模式相互協(xié)調(diào)。 - For example, according to the pattern catalog, the State pattern is often related to Flyweight and Singleton[GoF].
例如,通過模式目錄, State 模式經(jīng)常涉及到Flyweight 和 Singleton[GoF]。 - One optimization you might make in some circumstances is to use the flyweight design pattern to create only one different object for each different value of a type rather than for each different type.
某些情況下,可以采用的一種優(yōu)化措施是使用 flyweight 設(shè)計(jì)模式,為類型中每個(gè)不同的值創(chuàng)建單獨(dú)的對(duì)象,而不是為每個(gè)不同的類型創(chuàng)建單獨(dú)的對(duì)象。 返回 flyweight pattern