go top

Flyweight pattern

  • 享元模式(享元模式:减少内存使用量,相似物件分享资讯,共享部分状态,放在外部资料结构,需要时传递给享元)

英英释义

Flyweight pattern

  • abstract: In computer programming, flyweight is a software design pattern. A flyweight is an object that minimizes memory use by sharing as much data as possible with other similar objects; it is a way to use objects in large numbers when a simple repeated representation would use an unacceptable amount of memory.

以上来源于: WordNet

双语例句

  • Figure 14: Object model prior to Flyweight pattern.

    14:在Flyweight模式之前对象模型

    youdao

  • Figure 15: Object model after applying the Flyweight pattern.

    15:使用Flyweight对象模型

    youdao

  • But, fundamentally, reuse via design patterns is fine-grained: one solution (the Flyweight pattern, for example) is orthogonal to another (the Memento pattern).

    但是从根本上来说通过模式实现重用属于细粒度操作:解决方案是(比如享元(Flyweight)模式)与另一个解决方案(备忘录模式)正交

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定