Object Pool versus Object Cache
Posted by jpluimers on 2020/10/20
I think an:
- Object Pool is meant to set a maximum on the number of pooled objects because they are expensive in resource usage.
- Object Cache is meant to store objects (but not cap it) that are expensive to create, but do not per se are expensive in resource usage.
For future reading:
- cache seems not to be any pattern in these lists:
- Object pool pattern – Wikipedia
- [WayBack] java – What is the difference between Caching and Pooling? – Stack Overflow
- [WayBack] Is Object Pool he most misunderstood design pattern? Check!
–jeroen
Leave a Reply