Object pool pattern: Difference between revisions

Content deleted Content added
Moved clean-up template to top.
mNo edit summary
Line 1:
{{citestyle|date=March 2012}}
{{for|the article about a general pool|Pool (computer science)}}
{{citestyle|date=March 2012}}
 
The '''object pool pattern''' is a software [[creational pattern|creational design pattern]] that uses a set of initialized [[Object (computer science)|objects]] kept ready to use – a "[[Pool (computer science)|pool]]" – rather than allocating and destroying them on demand. A client of the pool will request an object from the pool and perform operations on the returned object. When the client has finished, it returns the object to the pool rather than [[object destruction|destroying it]]; this can be done manually or automatically.