Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    This is definitely not a factory or even close really. Factory is about indirection of construction allowing a concrete type to be created from an abstract specification. This is a pool. It's not bad per se, but now that you know it's an object pool that you're looking for, I would suggest reading up on good practices with pools and look for caveats people have learned to avoid and how to avoid reimplementing the problems they'd suffered. Start here: en.wikipedia.org/wiki/Object_pool_pattern Commented Sep 13, 2012 at 2:38
  • 1
    Thanks. I found this reading very useful, but what I need isn’t quite the pool pattern. I edited my question to show why. Commented Sep 13, 2012 at 4:53