Talk:Creational pattern

Latest comment: 17 years ago by Saigyo

I removed the object pool design patterns because it isn't a pattern at all. The pattern that describe an object pool is the flyweight pattern. 207.35.253.219 18:55, 13 April 2007 (UTC)Eric BoutinReply

Actually, Flyweight is a Structural Pattern and is quite distinct from an object pool. Flyweight is about sharing commonality of state. In contrast, the Object Pool pattern is focused on recycling of objects that are expensive to create and/or dispose. Objects that are no longer in use can be placed back into the pool for reuse in order to avoid overhead related to allocation or creation. The Object Pool pattern is very widely considered a creational pattern, although sometimes it is also classified as a memory pattern. Saigyo 10:35, 9 June 2007 (UTC)Reply

Here's a nice document that explains the object pool pattern in detail: www.kircher-schwanninger.de/michael/publications/Pooling.pdf (PDF) Saigyo 10:35, 9 June 2007 (UTC)Reply