Skip to content

享元模式(Flyweight Pattern)是一种结构设计模式。

Notifications You must be signed in to change notification settings

Jaxon7Cheung/Flyweight-Patter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Flyweight-Patter

享元模式(Flyweight Pattern)是一种结构设计模式。它使用共享物件,用来尽可能减少内存使用量以及分享资讯给尽可能多的相似物件;它适合用于只是因重复而导致使用无法令人接受的大量内存的大量物件。 通常物件中的部分状态是可以分享。 常见做法是把它们放在外部数据结构,当需要使用时再将它们传递给享元。 运用享元思想写了一个花朵池demo demo的源码在分支master

About

享元模式(Flyweight Pattern)是一种结构设计模式。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published