<?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: A different view of strings</title>
	<atom:link href="http://john-sheehan.com/blog/index.php/a-different-view-of-strings/feed/" rel="self" type="application/rss+xml" />
	<link>http://john-sheehan.com/blog/a-different-view-of-strings/</link>
	<description></description>
	<lastBuildDate>Wed, 10 Mar 2010 08:16:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Elad Ossadon</title>
		<link>http://john-sheehan.com/blog/a-different-view-of-strings/comment-page-1/#comment-14901</link>
		<dc:creator>Elad Ossadon</dc:creator>
		<pubDate>Tue, 20 Jan 2009 02:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://john-sheehan.com/blog/a-different-view-of-strings/#comment-14901</guid>
		<description>Nice one.&lt;br&gt;A better way would be: id.split(&quot;_&quot;).pop() in case you accidentally have one more underscore.&lt;br&gt;BTW, String#split using a string is preferred over regexp if you don&#039;t need a regexp. It&#039;s 35% faster.</description>
		<content:encoded><![CDATA[<p>Nice one.<br />A better way would be: id.split(&#8220;_&#8221;).pop() in case you accidentally have one more underscore.<br />BTW, String#split using a string is preferred over regexp if you don&#39;t need a regexp. It&#39;s 35% faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Sheehan</title>
		<link>http://john-sheehan.com/blog/a-different-view-of-strings/comment-page-1/#comment-14902</link>
		<dc:creator>John Sheehan</dc:creator>
		<pubDate>Tue, 20 Jan 2009 01:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://john-sheehan.com/blog/a-different-view-of-strings/#comment-14902</guid>
		<description>Thanks Elad. Do you have any data to back up that performance claim?</description>
		<content:encoded><![CDATA[<p>Thanks Elad. Do you have any data to back up that performance claim?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elad Ossadon</title>
		<link>http://john-sheehan.com/blog/a-different-view-of-strings/comment-page-1/#comment-14621</link>
		<dc:creator>Elad Ossadon</dc:creator>
		<pubDate>Mon, 19 Jan 2009 21:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://john-sheehan.com/blog/a-different-view-of-strings/#comment-14621</guid>
		<description>Sure:&lt;br&gt;&lt;br&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;br&gt;var d=new Date();&lt;br&gt;for (var i=100000;i--;) {&lt;br&gt;	&quot;object_123&quot;.split(&quot;_&quot;);&lt;br&gt;}&lt;br&gt;alert(new Date()-d);&lt;br&gt;&lt;br&gt;var d=new Date();&lt;br&gt;for (var i=100000;i--;) {&lt;br&gt;	&quot;object_123&quot;.split(/_/);&lt;br&gt;}&lt;br&gt;alert(new Date()-d);&lt;br&gt;&lt;/script&gt;</description>
		<content:encoded><![CDATA[<p>Sure:</p>
<p>&lt;script type=&#8221;text/javascript&#8221;&gt;<br />var d=new Date();<br />for (var i=100000;i&#8211;;) {<br />	&#8220;object_123&#8243;.split(&#8220;_&#8221;);<br />}<br />alert(new Date()-d);</p>
<p>var d=new Date();<br />for (var i=100000;i&#8211;;) {<br />	&#8220;object_123&#8243;.split(/_/);<br />}<br />alert(new Date()-d);<br />&lt;/script&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elad Ossadon</title>
		<link>http://john-sheehan.com/blog/a-different-view-of-strings/comment-page-1/#comment-14620</link>
		<dc:creator>Elad Ossadon</dc:creator>
		<pubDate>Mon, 19 Jan 2009 20:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://john-sheehan.com/blog/a-different-view-of-strings/#comment-14620</guid>
		<description>Nice one.&lt;br&gt;A better way would be: id.split(&quot;_&quot;).pop() in case you accidentally have one more underscore.&lt;br&gt;BTW, String#split using a string is preferred over regexp if you don&#039;t need a regexp. It&#039;s 35% faster.</description>
		<content:encoded><![CDATA[<p>Nice one.<br />A better way would be: id.split(&#8220;_&#8221;).pop() in case you accidentally have one more underscore.<br />BTW, String#split using a string is preferred over regexp if you don&#39;t need a regexp. It&#39;s 35% faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Sheehan</title>
		<link>http://john-sheehan.com/blog/a-different-view-of-strings/comment-page-1/#comment-14618</link>
		<dc:creator>John Sheehan</dc:creator>
		<pubDate>Fri, 16 Jan 2009 20:01:36 +0000</pubDate>
		<guid isPermaLink="false">http://john-sheehan.com/blog/a-different-view-of-strings/#comment-14618</guid>
		<description>I haven&#039;t. For this scenario I don&#039;t think it will be a bottleneck.</description>
		<content:encoded><![CDATA[<p>I haven&#39;t. For this scenario I don&#39;t think it will be a bottleneck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kpanghmc</title>
		<link>http://john-sheehan.com/blog/a-different-view-of-strings/comment-page-1/#comment-14617</link>
		<dc:creator>kpanghmc</dc:creator>
		<pubDate>Fri, 16 Jan 2009 18:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://john-sheehan.com/blog/a-different-view-of-strings/#comment-14617</guid>
		<description>Have you done any performance testing on this?  I know that regexes in .NET code tend to be on the slower end.  Not sure about javascript regex performance though.</description>
		<content:encoded><![CDATA[<p>Have you done any performance testing on this?  I know that regexes in .NET code tend to be on the slower end.  Not sure about javascript regex performance though.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
