<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Performance Quiz #6 -- Looking at the fourth cut</title><link>http://blogs.msdn.com/b/ricom/archive/2005/05/16/performance-quiz-6-looking-at-the-fourth-cut.aspx</link><description>Raymond is definately making some great headway. Having targetted the single-character at a time conversion problem in version 4 of his program he's 1.84 times faster than the previous version. 
 
 

 
 Version 
 Execution Time (seconds) 
 
 Unmanaged</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>.NET Efficiency</title><link>http://blogs.msdn.com/b/ricom/archive/2005/05/16/performance-quiz-6-looking-at-the-fourth-cut.aspx#423421</link><pubDate>Tue, 31 May 2005 16:26:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:423421</guid><dc:creator>Alan's Corner</dc:creator><description>So I was reading through one of my favorite MSDN blogs (&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/oldnewthing/"&gt;http://blogs.msdn.com/oldnewthing/&lt;/a&gt;)&lt;br&gt;&lt;br&gt;And he...&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=423421" width="1" height="1"&gt;</description></item><item><title>re: Performance Quiz #6 -- Looking at the fourth cut</title><link>http://blogs.msdn.com/b/ricom/archive/2005/05/16/performance-quiz-6-looking-at-the-fourth-cut.aspx#418722</link><pubDate>Tue, 17 May 2005 18:27:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:418722</guid><dc:creator>stefang</dc:creator><description>Rico, do you have any comments to my comment at:&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/ricom/archive/2005/05/12/416977.aspx#418471"&gt;http://blogs.msdn.com/ricom/archive/2005/05/12/416977.aspx#418471&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=418722" width="1" height="1"&gt;</description></item><item><title>re: Performance Quiz #6 -- Looking at the fourth cut</title><link>http://blogs.msdn.com/b/ricom/archive/2005/05/16/performance-quiz-6-looking-at-the-fourth-cut.aspx#418717</link><pubDate>Tue, 17 May 2005 18:22:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:418717</guid><dc:creator>James Clarke</dc:creator><description>Rico..  Do you have any working set numbers to compare between the two implementations?&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=418717" width="1" height="1"&gt;</description></item><item><title>re: Performance Quiz #6 -- Looking at the fourth cut</title><link>http://blogs.msdn.com/b/ricom/archive/2005/05/16/performance-quiz-6-looking-at-the-fourth-cut.aspx#418559</link><pubDate>Tue, 17 May 2005 12:53:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:418559</guid><dc:creator>Will Dean</dc:creator><description>The managed version takes around 50ms to run here, built with VS2005B2.  (My PC is faster than I thought...)&lt;br&gt;&lt;br&gt;About 53% of the time (including children) is spent in Parse, about 23% in Substring in Parse.&lt;br&gt;&lt;br&gt;I don't know if the VS profiler can be made to tell me more about what's happening INSIDE something like Substring.&lt;br&gt;&lt;br&gt;My approach (as a C programmer, really) my be to load the whole string and just use parse to calculate the offsets and lengths of everything, thereby avoiding all the string copying.  &lt;br&gt;&lt;br&gt;But of course, that would just be a trade-off of load time vs. access time, and I don't know enough about the rest of the application to know if that would be a good thing.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=418559" width="1" height="1"&gt;</description></item><item><title>re: Performance Quiz #6 -- Looking at the fourth cut</title><link>http://blogs.msdn.com/b/ricom/archive/2005/05/16/performance-quiz-6-looking-at-the-fourth-cut.aspx#418468</link><pubDate>Tue, 17 May 2005 11:25:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:418468</guid><dc:creator>ricom</dc:creator><description>I did see Raymond's program quite some time ago, but I didn't do any analysis then.  Still it's not hard to predict where he's likely to go because he keeps picking off the biggest performance problem and it's easy enough to spot that by looking at what he's done so far.  It's not like I'm doing some exotic analysis here :)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=418468" width="1" height="1"&gt;</description></item><item><title>re: Performance Quiz #6 -- Looking at the fourth cut</title><link>http://blogs.msdn.com/b/ricom/archive/2005/05/16/performance-quiz-6-looking-at-the-fourth-cut.aspx#418459</link><pubDate>Tue, 17 May 2005 10:30:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:418459</guid><dc:creator>Asd</dc:creator><description>Just out of curiosity I did a direct port of the managed version to Java. I'm getting around 203ms.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=418459" width="1" height="1"&gt;</description></item><item><title>re: Performance Quiz #6 -- Looking at the fourth cut</title><link>http://blogs.msdn.com/b/ricom/archive/2005/05/16/performance-quiz-6-looking-at-the-fourth-cut.aspx#418425</link><pubDate>Tue, 17 May 2005 08:05:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:418425</guid><dc:creator>Larry Osterman [MSFT]</dc:creator><description>I've been trying to figure if you and Raymond are doing this in concert - especially since you seem to be giving the hints to where Raymond's going to be going next...&lt;br&gt;&lt;br&gt;And I'm still waiting for him to totally rip the CRT out of the picture.&lt;br&gt;&lt;br&gt;He's pretty close right now.  All he has to do is get rid of those darned string thingies (which are fundimentally pointless since he's dealing with what are effectively fixed length items).&lt;br&gt;&lt;br&gt;And no, I didn't peek at his next posts.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=418425" width="1" height="1"&gt;</description></item><item><title>re: Performance Quiz #6 -- Looking at the fourth cut</title><link>http://blogs.msdn.com/b/ricom/archive/2005/05/16/performance-quiz-6-looking-at-the-fourth-cut.aspx#418174</link><pubDate>Tue, 17 May 2005 02:07:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:418174</guid><dc:creator>Dean Harding</dc:creator><description>Hehe, you going to hold your trump card in reserve until the unmanaged one is as fast as it'll get? :)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=418174" width="1" height="1"&gt;</description></item><item><title>re: Performance Quiz #6 -- Looking at the fourth cut</title><link>http://blogs.msdn.com/b/ricom/archive/2005/05/16/performance-quiz-6-looking-at-the-fourth-cut.aspx#418131</link><pubDate>Mon, 16 May 2005 23:52:46 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:418131</guid><dc:creator>ricom</dc:creator><description>I'm saving the managed analysis for a bit... partly waiting to see if any of my readers have more to say based on their own measurements and partly waiting for Raymond's unmanaged to finally beat the managed time.  &lt;br&gt;&lt;br&gt;I think it will be interesting to see what it takes and what finally did the trick.  Hang in there a few more days.&lt;br&gt;&lt;br&gt;I think the whole exercise is just full of surprises so I'm kinda hoping more people will say what's on their mind.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=418131" width="1" height="1"&gt;</description></item><item><title>re: Performance Quiz #6 -- Looking at the fourth cut</title><link>http://blogs.msdn.com/b/ricom/archive/2005/05/16/performance-quiz-6-looking-at-the-fourth-cut.aspx#418116</link><pubDate>Mon, 16 May 2005 23:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:418116</guid><dc:creator>Michael S. Kaplan</dc:creator><description>Hey Rico!&lt;br&gt;&lt;br&gt;I'm still aching to know how the Everett vs. Whidbey numbers look. :-)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=418116" width="1" height="1"&gt;</description></item></channel></rss>