<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Object Pool class</title>
	<atom:link href="http://www.richardlord.net/blog/object-pool-class/feed" rel="self" type="application/rss+xml" />
	<link>http://www.richardlord.net/blog/object-pool-class</link>
	<description>Actionscript/Flex, PHP and Java developer</description>
	<lastBuildDate>Sat, 24 Jul 2010 00:46:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: David Lance</title>
		<link>http://www.richardlord.net/blog/object-pool-class/comment-page-1#comment-29867</link>
		<dc:creator>David Lance</dc:creator>
		<pubDate>Wed, 01 Apr 2009 21:13:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/object-pool-class/#comment-29867</guid>
		<description>This is an interesting idea, but does it worry anyone else about being a potentially huge memory leak? I&#039;m thinking EJB when I hear object pools which regulate the number of pooled objects. That would be a nice addition to this.</description>
		<content:encoded><![CDATA[<p>This is an interesting idea, but does it worry anyone else about being a potentially huge memory leak? I&#8217;m thinking EJB when I hear object pools which regulate the number of pooled objects. That would be a nice addition to this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Minh Ha</title>
		<link>http://www.richardlord.net/blog/object-pool-class/comment-page-1#comment-29461</link>
		<dc:creator>Minh Ha</dc:creator>
		<pubDate>Wed, 11 Mar 2009 08:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/object-pool-class/#comment-29461</guid>
		<description>This object pool pattern is very straightforward, not much variation in implementation. It&#039;s a good example.</description>
		<content:encoded><![CDATA[<p>This object pool pattern is very straightforward, not much variation in implementation. It&#8217;s a good example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.richardlord.net/blog/object-pool-class/comment-page-1#comment-29450</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Tue, 10 Mar 2009 18:34:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/object-pool-class/#comment-29450</guid>
		<description>yes an example would be nice because I just don&#039;t see how it functions...but the idea is good!!</description>
		<content:encoded><![CDATA[<p>yes an example would be nice because I just don&#8217;t see how it functions&#8230;but the idea is good!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TroyWorks</title>
		<link>http://www.richardlord.net/blog/object-pool-class/comment-page-1#comment-28512</link>
		<dc:creator>TroyWorks</dc:creator>
		<pubDate>Fri, 05 Dec 2008 03:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/object-pool-class/#comment-28512</guid>
		<description>Bummer about apply not working with constructors, I wonder what they were thinking?

I decided to adapt your construct class and use the ..rest property instead.
e.g.
http://code.google.com/p/troyworks/source/browse/trunk/AS3/dev/src/com/troyworks/util/new2.as</description>
		<content:encoded><![CDATA[<p>Bummer about apply not working with constructors, I wonder what they were thinking?</p>
<p>I decided to adapt your construct class and use the ..rest property instead.<br />
e.g.<br />
<a href="http://code.google.com/p/troyworks/source/browse/trunk/AS3/dev/src/com/troyworks/util/new2.as" rel="nofollow">http://code.google.com/p/troyworks/source/browse/trunk/AS3/dev/src/com/troyworks/util/new2.as</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frederic Gascon</title>
		<link>http://www.richardlord.net/blog/object-pool-class/comment-page-1#comment-28494</link>
		<dc:creator>Frederic Gascon</dc:creator>
		<pubDate>Tue, 02 Dec 2008 05:26:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/object-pool-class/#comment-28494</guid>
		<description>I use Objects pools too, but I implemented it in a different way. I putted the pool in the created object. This way you can use the constructor. I use linked stack for the pool. This can be added to any class with little changes.

&lt;pre class=&quot;code&quot;&gt;package{
  public class Poolable{

    public var userData:*;
    private var next:Poolable;
    private static var first:Poolable;

    public function Poolable(){
      trace(&quot;object creation!&quot;);
    }

    public function recycle():void{
      if(first==null){
        first = this;
      }else{
        this.next = first;
        first = this;
      }
    }

    public static function getObject(data:*):Poolable{
      var poolable:Poolable;
      if(first==null){
        poolable = new Poolable();
      }else{
        poolable = first;
        first = first.next;
      }
      poolable.userData = data;
      return poolable;
    }
  }
}&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I use Objects pools too, but I implemented it in a different way. I putted the pool in the created object. This way you can use the constructor. I use linked stack for the pool. This can be added to any class with little changes.</p>
<pre class="code">package{
  public class Poolable{

    public var userData:*;
    private var next:Poolable;
    private static var first:Poolable;

    public function Poolable(){
      trace("object creation!");
    }

    public function recycle():void{
      if(first==null){
        first = this;
      }else{
        this.next = first;
        first = this;
      }
    }

    public static function getObject(data:*):Poolable{
      var poolable:Poolable;
      if(first==null){
        poolable = new Poolable();
      }else{
        poolable = first;
        first = first.next;
      }
      poolable.userData = data;
      return poolable;
    }
  }
}</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: richard</title>
		<link>http://www.richardlord.net/blog/object-pool-class/comment-page-1#comment-28096</link>
		<dc:creator>richard</dc:creator>
		<pubDate>Fri, 17 Oct 2008 07:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/object-pool-class/#comment-28096</guid>
		<description>Unfortunately there&#039;s no way to use apply with a constructor.</description>
		<content:encoded><![CDATA[<p>Unfortunately there&#8217;s no way to use apply with a constructor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dru Kepple</title>
		<link>http://www.richardlord.net/blog/object-pool-class/comment-page-1#comment-28088</link>
		<dc:creator>Dru Kepple</dc:creator>
		<pubDate>Thu, 16 Oct 2008 23:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/object-pool-class/#comment-28088</guid>
		<description>Hmm, very interesting!  Too bad I&#039;m already 80% of the way through a project where this could be really useful; a little late to do too much with it now.  In the future, though!

One question:  I noticed that in the construct method, you&#039;re doing a big switch to check how many arguments you have coming in.  Is there any way to use apply with a constructor?  Might be more flexible, but maybe that doesn&#039;t work.</description>
		<content:encoded><![CDATA[<p>Hmm, very interesting!  Too bad I&#8217;m already 80% of the way through a project where this could be really useful; a little late to do too much with it now.  In the future, though!</p>
<p>One question:  I noticed that in the construct method, you&#8217;re doing a big switch to check how many arguments you have coming in.  Is there any way to use apply with a constructor?  Might be more flexible, but maybe that doesn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: delizade</title>
		<link>http://www.richardlord.net/blog/object-pool-class/comment-page-1#comment-28070</link>
		<dc:creator>delizade</dc:creator>
		<pubDate>Tue, 14 Oct 2008 22:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.bigroom.co.uk/blog/object-pool-class/#comment-28070</guid>
		<description>hi Richard,

it is strange idea for me. if you can put an example for that it will be great.

regards</description>
		<content:encoded><![CDATA[<p>hi Richard,</p>
<p>it is strange idea for me. if you can put an example for that it will be great.</p>
<p>regards</p>
]]></content:encoded>
	</item>
</channel>
</rss>
