Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 580 Bytes

README.md

File metadata and controls

13 lines (8 loc) · 580 Bytes

Object Pool

Object Pool pattern is effective if used in situation where the cost of initializing a class instance is high. With this pattern, we will make a container that contains some amount of objects. So we can just take the object from the pool when we need it and put it back when we done.

base

For example, we will make a Thread pool, where we can get Thread object from the pool when we need it.

example

Source