Edge Rewrite
// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a21c49572b3a5e37

Jump to content

Talk:Creational pattern

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 19 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