<?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>ASP.NET Data Binding Performance – Collection Is More Expensive Than Datatable</title><link>http://blogs.msdn.com/alikl/archive/2008/08/01/ASP.NET-Data-Binding-Performance-_1320_-Collection-Is-More-Expensive-Than-Datatable.aspx</link><description>In my previous post - Best ASP.NET Performance Winner For Data Binding - Hands Up To Response.Write() – I’ve conducted several simple performance tests for data binding to GridView in ASP.NET page. What surprised me most is that eliminating massive loops</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: ASP.NET Data Binding Performance – Collection Is More Expensive Than Datatable</title><link>http://blogs.msdn.com/alikl/archive/2008/08/01/ASP.NET-Data-Binding-Performance-_1320_-Collection-Is-More-Expensive-Than-Datatable.aspx#8800148</link><pubDate>Fri, 01 Aug 2008 17:45:56 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8800148</guid><dc:creator>israelaece</dc:creator><description>&lt;p&gt;Hello Alik,&lt;/p&gt;
&lt;p&gt;If you casting DataItem in DataBound event and fill each line control (cells/labels), wouldn't you have a better performance?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;</description></item><item><title>re: ASP.NET Data Binding Performance – Collection Is More Expensive Than Datatable</title><link>http://blogs.msdn.com/alikl/archive/2008/08/01/ASP.NET-Data-Binding-Performance-_1320_-Collection-Is-More-Expensive-Than-Datatable.aspx#8802743</link><pubDate>Sat, 02 Aug 2008 01:41:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8802743</guid><dc:creator>Anatoly Lubarsky</dc:creator><description>&lt;p&gt;Something is wrong on your own numbers:&lt;/p&gt;
&lt;p&gt;- the 1st one (customecollection) shows 0.0043&lt;/p&gt;
&lt;p&gt;- the 2nd one (datatable) shows 0.0047&lt;/p&gt;
&lt;p&gt;So the 2nd one is slower.&lt;/p&gt;</description></item><item><title>re: ASP.NET Data Binding Performance – Collection Is More Expensive Than Datatable</title><link>http://blogs.msdn.com/alikl/archive/2008/08/01/ASP.NET-Data-Binding-Performance-_1320_-Collection-Is-More-Expensive-Than-Datatable.aspx#8805183</link><pubDate>Sat, 02 Aug 2008 11:33:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8805183</guid><dc:creator>alikl</dc:creator><description>&lt;p&gt;Hi, Israel!&lt;/p&gt;
&lt;p&gt;Interesting remark.&lt;/p&gt;
&lt;p&gt;Look at what PAG says about that:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ms998549.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms998549.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;look at &amp;quot;Minimize Calls to DataBinder.Eval&amp;quot; in it&lt;/p&gt;
&lt;p&gt;I guess I need to do more testing - thansk for calling this out!&lt;/p&gt;
</description></item><item><title>re: ASP.NET Data Binding Performance – Collection Is More Expensive Than Datatable</title><link>http://blogs.msdn.com/alikl/archive/2008/08/01/ASP.NET-Data-Binding-Performance-_1320_-Collection-Is-More-Expensive-Than-Datatable.aspx#8805351</link><pubDate>Sat, 02 Aug 2008 12:54:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8805351</guid><dc:creator>alikl</dc:creator><description>&lt;p&gt;Anatoly,&lt;/p&gt;
&lt;p&gt;Good catch! Please notice that in the post i measure how long does it take to DataBind() to complete and not the whole cycle as you call out. I must admit I was not that clear and this might have misled you. Sorry about that.&lt;/p&gt;
&lt;p&gt;The other stuff. My main goal - which is also not very clear in my post - to identify CPU killers and I am less interested in response times. &lt;/p&gt;
&lt;p&gt;Bottom line - you bring in interesting angle which adds to the whole picture, thank you for that&lt;/p&gt;
</description></item></channel></rss>