<?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: Expand Your Twitter Network In Less Than 15 Lines of Ruby</title>
	<atom:link href="http://blog.jerodsanto.net/2009/05/expand-your-twitter-network-in-less-than-15-lines-of-ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jerodsanto.net/2009/05/expand-your-twitter-network-in-less-than-15-lines-of-ruby/</link>
	<description>with Jerod Santo</description>
	<lastBuildDate>Wed, 10 Mar 2010 04:47:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sandal</title>
		<link>http://blog.jerodsanto.net/2009/05/expand-your-twitter-network-in-less-than-15-lines-of-ruby/comment-page-1/#comment-388</link>
		<dc:creator>sandal</dc:creator>
		<pubDate>Mon, 18 May 2009 19:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=330#comment-388</guid>
		<description>It&#039;s because of object allocation.  inject doesn&#039;t accumulate into a single collection, but instead produces a new one every iteration.  This is also true of Array#+ but less of a concern.   Object creation (and GC) are very slow in Ruby.</description>
		<content:encoded><![CDATA[<p>It&#39;s because of object allocation.  inject doesn&#39;t accumulate into a single collection, but instead produces a new one every iteration.  This is also true of Array#+ but less of a concern.   Object creation (and GC) are very slow in Ruby.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerod Santo</title>
		<link>http://blog.jerodsanto.net/2009/05/expand-your-twitter-network-in-less-than-15-lines-of-ruby/comment-page-1/#comment-387</link>
		<dc:creator>Jerod Santo</dc:creator>
		<pubDate>Mon, 18 May 2009 19:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=330#comment-387</guid>
		<description>Yes, I suppose it is. It&#039;s also a little easier to read. But why would it be *much* faster than using inject? Is it because adding arrays is slow but flattening an array of arrays is not?</description>
		<content:encoded><![CDATA[<p>Yes, I suppose it is. It&#39;s also a little easier to read. But why would it be *much* faster than using inject? Is it because adding arrays is slow but flattening an array of arrays is not?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandal</title>
		<link>http://blog.jerodsanto.net/2009/05/expand-your-twitter-network-in-less-than-15-lines-of-ruby/comment-page-1/#comment-386</link>
		<dc:creator>sandal</dc:creator>
		<pubDate>Mon, 18 May 2009 19:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=330#comment-386</guid>
		<description>Isn&#039;t:&lt;br&gt;&lt;br&gt;my_friends.inject(Array.new) { &#124;array,id&#124; array += Twitter.friend_ids(id); array }&lt;br&gt;&lt;br&gt;the same as&lt;br&gt;&lt;br&gt;my_friends.map { &#124;id&#124; Twitter.friend_ids(id) }.flatten &lt;br&gt;&lt;br&gt;(The latter should be *much* faster).&lt;br&gt;&lt;br&gt;Otherwise, very cool little script.</description>
		<content:encoded><![CDATA[<p>Isn&#39;t:</p>
<p>my_friends.inject(Array.new) { |array,id| array += Twitter.friend_ids(id); array }</p>
<p>the same as</p>
<p>my_friends.map { |id| Twitter.friend_ids(id) }.flatten </p>
<p>(The latter should be *much* faster).</p>
<p>Otherwise, very cool little script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandal</title>
		<link>http://blog.jerodsanto.net/2009/05/expand-your-twitter-network-in-less-than-15-lines-of-ruby/comment-page-1/#comment-217</link>
		<dc:creator>sandal</dc:creator>
		<pubDate>Mon, 18 May 2009 12:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=330#comment-217</guid>
		<description>It&#039;s because of object allocation.  inject doesn&#039;t accumulate into a single collection, but instead produces a new one every iteration.  This is also true of Array#+ but less of a concern.   Object creation (and GC) are very slow in Ruby.</description>
		<content:encoded><![CDATA[<p>It&#39;s because of object allocation.  inject doesn&#39;t accumulate into a single collection, but instead produces a new one every iteration.  This is also true of Array#+ but less of a concern.   Object creation (and GC) are very slow in Ruby.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sant0sk1</title>
		<link>http://blog.jerodsanto.net/2009/05/expand-your-twitter-network-in-less-than-15-lines-of-ruby/comment-page-1/#comment-216</link>
		<dc:creator>sant0sk1</dc:creator>
		<pubDate>Mon, 18 May 2009 12:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=330#comment-216</guid>
		<description>Yes, I suppose it is. It&#039;s also a little easier to read. But why would it be *much* faster than using inject? Is it because adding arrays is slow but flattening an array of arrays is not?</description>
		<content:encoded><![CDATA[<p>Yes, I suppose it is. It&#39;s also a little easier to read. But why would it be *much* faster than using inject? Is it because adding arrays is slow but flattening an array of arrays is not?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandal</title>
		<link>http://blog.jerodsanto.net/2009/05/expand-your-twitter-network-in-less-than-15-lines-of-ruby/comment-page-1/#comment-215</link>
		<dc:creator>sandal</dc:creator>
		<pubDate>Mon, 18 May 2009 12:31:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jerodsanto.net/?p=330#comment-215</guid>
		<description>Isn&#039;t:&lt;br&gt;&lt;br&gt;my_friends.inject(Array.new) { &#124;array,id&#124; array += Twitter.friend_ids(id); array }&lt;br&gt;&lt;br&gt;the same as&lt;br&gt;&lt;br&gt;my_friends.map { &#124;id&#124; Twitter.friend_ids(id) }.flatten &lt;br&gt;&lt;br&gt;(The latter should be *much* faster).&lt;br&gt;&lt;br&gt;Otherwise, very cool little script.</description>
		<content:encoded><![CDATA[<p>Isn&#39;t:</p>
<p>my_friends.inject(Array.new) { |array,id| array += Twitter.friend_ids(id); array }</p>
<p>the same as</p>
<p>my_friends.map { |id| Twitter.friend_ids(id) }.flatten </p>
<p>(The latter should be *much* faster).</p>
<p>Otherwise, very cool little script.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
