﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-Minco-最新评论</title><link>http://www.cnblogs.com/ofei/CommentsRSS.aspx</link><description /><language>zh-cn</language><pubDate>Sat, 06 Nov 2010 05:17:47 GMT</pubDate><lastBuildDate>Sat, 06 Nov 2010 05:17:47 GMT</lastBuildDate><generator>cnblogs</generator><item><title>Re:扩展下jscalendar，添加ShowCalendar方法</title><link>http://www.cnblogs.com/ofei/archive/2010/10/11/979418.html#1931785</link><dc:creator>SoftWareBoy</dc:creator><author>SoftWareBoy</author><pubDate>Mon, 11 Oct 2010 02:34:28 GMT</pubDate><guid>http://www.cnblogs.com/ofei/archive/2010/10/11/979418.html#1931785</guid><description><![CDATA[var date = Date.parseDate(obj.value , dateFormat); 
大哥我这个函数报错：
Uncaught TypeError: Object function Date() { [native code] } has no method 'parseDate'。
没这个方法。
<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/ofei/" target="_blank">SoftWareBoy</a> 2010-10-11 10:34 <a href="http://www.cnblogs.com/ofei/archive/2010/10/11/979418.html#1931785#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:针对sl的ICSharpCode.SharpZipLib，只保留zip，gzip的流压缩、解压缩功能</title><link>http://www.cnblogs.com/ofei/archive/2010/05/17/1737342.html#1826174</link><dc:creator>PrincessDanbao</dc:creator><author>PrincessDanbao</author><pubDate>Mon, 17 May 2010 06:46:39 GMT</pubDate><guid>http://www.cnblogs.com/ofei/archive/2010/05/17/1737342.html#1826174</guid><description><![CDATA[波波同学很不错嘛。向你学习<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/ofei/" target="_blank">PrincessDanbao</a> 2010-05-17 14:46 <a href="http://www.cnblogs.com/ofei/archive/2010/05/17/1737342.html#1826174#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:不同IComparer对数组排序Array.Sort,Linq orderby的性能的影响</title><link>http://www.cnblogs.com/ofei/archive/2010/01/25/1654325.html#1753461</link><dc:creator>分享 共赢</dc:creator><author>分享 共赢</author><pubDate>Mon, 25 Jan 2010 01:08:07 GMT</pubDate><guid>http://www.cnblogs.com/ofei/archive/2010/01/25/1654325.html#1753461</guid><description><![CDATA[这里涉及到SortWithCustomComparer vs SortWithLinq2是有关自定义PersonComparer在Array.Sort及linq orderby的比较

SortWithLinq vs SortWithLinq2是有关不同IComparer在linq orderby中的比较

<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/ofei/" target="_blank">分享 共赢</a> 2010-01-25 09:08 <a href="http://www.cnblogs.com/ofei/archive/2010/01/25/1654325.html#1753461#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:不同IComparer对数组排序Array.Sort,Linq orderby的性能的影响</title><link>http://www.cnblogs.com/ofei/archive/2010/01/25/1654325.html#1753392</link><dc:creator>Jeffrey Zhao</dc:creator><author>Jeffrey Zhao</author><pubDate>Sun, 24 Jan 2010 16:34:24 GMT</pubDate><guid>http://www.cnblogs.com/ofei/archive/2010/01/25/1654325.html#1753392</guid><description><![CDATA[@分享 共赢
如果根据你的结论，得出的结果也不该是“Comparer&lt;T&gt;.Default”高效啊，而是“OrderedEnumerable算法可以少进行一些比较”，呵呵。
不过其实这些内容挺有趣的，我会慢慢写的，下周就交给这些话题了，很多东西可以挖掘。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/ofei/" target="_blank">Jeffrey Zhao</a> 2010-01-25 00:34 <a href="http://www.cnblogs.com/ofei/archive/2010/01/25/1654325.html#1753392#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:不同IComparer对数组排序Array.Sort,Linq orderby的性能的影响</title><link>http://www.cnblogs.com/ofei/archive/2010/01/23/1654325.html#1752685</link><dc:creator>分享 共赢</dc:creator><author>分享 共赢</author><pubDate>Sat, 23 Jan 2010 01:31:42 GMT</pubDate><guid>http://www.cnblogs.com/ofei/archive/2010/01/23/1654325.html#1752685</guid><description><![CDATA[@ Jeffrey Zhao
基于Enumerable的linq表达式我倒是没有试过编译，我下的结论有点武断
在dottrace的分析图（因没有源代码导致系统dll的部分调用没采样出来吧）中可以看到SortWithLinq2比SortWithLinq多一个compare的调用，而SortWithCustomComparer的compare调用次数比SortWithLinq2少，因此看不出OrderedEnumerable引入的新算法比array的二分法效率高。而我能得出的只是基于Enumerable的linq orderby返回一个OrderedEnumerable&lt;TElement, TKey&gt;实例，这个实例可以选用高效的Comparer&lt;T&gt;.Default进行比较，从而提高性能

我对算法不是很熟悉，有时间再搞个专题分析分析？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/ofei/" target="_blank">分享 共赢</a> 2010-01-23 09:31 <a href="http://www.cnblogs.com/ofei/archive/2010/01/23/1654325.html#1752685#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:不同IComparer对数组排序Array.Sort,Linq orderby的性能的影响</title><link>http://www.cnblogs.com/ofei/archive/2010/01/23/1654325.html#1752656</link><dc:creator>Jeffrey Zhao</dc:creator><author>Jeffrey Zhao</author><pubDate>Fri, 22 Jan 2010 17:58:53 GMT</pubDate><guid>http://www.cnblogs.com/ofei/archive/2010/01/23/1654325.html#1752656</guid><description><![CDATA[@分享 共赢
LINQ排序性能在某些时候高的原因不是IComparer&lt;T&gt;.Default性能高，而是因为KeySelector的操作方式省时间。
此外，你这里的LINQ表达式是不能编译也不需要编译的，你混淆了Enumerable和Queryable两个LINQ的区别。

我真没想到这个话题可以谈这么多，你们都给了我不少写作题材，呵呵。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/ofei/" target="_blank">Jeffrey Zhao</a> 2010-01-23 01:58 <a href="http://www.cnblogs.com/ofei/archive/2010/01/23/1654325.html#1752656#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:不同IComparer对数组排序Array.Sort,Linq orderby的性能的影响</title><link>http://www.cnblogs.com/ofei/archive/2010/01/22/1654325.html#1752600</link><dc:creator>分享 共赢</dc:creator><author>分享 共赢</author><pubDate>Fri, 22 Jan 2010 14:48:48 GMT</pubDate><guid>http://www.cnblogs.com/ofei/archive/2010/01/22/1654325.html#1752600</guid><description><![CDATA[实际上，在debug方式下，我测试的时候注意到linq orderby默认的方式比Array.Sort要高些，但release方式下，Array.Sort还是最快的

在.net内部，执行比较都是在一个IComparer实例上进行的
linq orderby返回一个OrderedEnumerable&lt;TElement, TKey&gt;实例，这个实例可以选用高效的IComparer&lt;T&gt;.Default进行比较，从而提高性能

对于频繁调用lambda表达式，编译之后再执行应该可以提高不少性能<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/ofei/" target="_blank">分享 共赢</a> 2010-01-22 22:48 <a href="http://www.cnblogs.com/ofei/archive/2010/01/22/1654325.html#1752600#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:不同IComparer对数组排序Array.Sort,Linq orderby的性能的影响</title><link>http://www.cnblogs.com/ofei/archive/2010/01/22/1654325.html#1752575</link><dc:creator>Ivony...</dc:creator><author>Ivony...</author><pubDate>Fri, 22 Jan 2010 13:54:07 GMT</pubDate><guid>http://www.cnblogs.com/ofei/archive/2010/01/22/1654325.html#1752575</guid><description><![CDATA[其实这也就是我说的在某些情况下LINQ可能真的更快，我们真的不能一概而论。

不过现在必须检讨的是，我做的测试不够充分。因为我后来发现其实性能受到各方面的影响太大了，连续出现某种测试优于另一种测试完全可能。


LINQ使用的是KeySelector的模式，那么这种模式相较于用于比较Key的Comparer的确是存在理论上的优势的。

只要Comparer足够复杂（其实也就是GetKey足够复杂），那么KeySelector的优势就能展现。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/ofei/" target="_blank">Ivony...</a> 2010-01-22 21:54 <a href="http://www.cnblogs.com/ofei/archive/2010/01/22/1654325.html#1752575#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:数组排序LINQ的性能优势初步分析 —— IComparer对性能的影响</title><link>http://www.cnblogs.com/ofei/archive/2010/01/22/1654325.html#1752434</link><dc:creator>Jeffrey Zhao</dc:creator><author>Jeffrey Zhao</author><pubDate>Fri, 22 Jan 2010 09:14:14 GMT</pubDate><guid>http://www.cnblogs.com/ofei/archive/2010/01/22/1654325.html#1752434</guid><description><![CDATA[这个倒容易理解，很直接的原因。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/ofei/" target="_blank">Jeffrey Zhao</a> 2010-01-22 17:14 <a href="http://www.cnblogs.com/ofei/archive/2010/01/22/1654325.html#1752434#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:使用System.Net.Mail发送邮件，vs2005与vs2008存在差别？</title><link>http://www.cnblogs.com/ofei/archive/2009/09/25/1026166.html#1657645</link><dc:creator>s714014</dc:creator><author>s714014</author><pubDate>Fri, 25 Sep 2009 02:25:13 GMT</pubDate><guid>http://www.cnblogs.com/ofei/archive/2009/09/25/1026166.html#1657645</guid><description><![CDATA[当smtp需要身份验证时，在05下smtpclient会报错，不知道08有没有修正这一错误<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/ofei/" target="_blank">s714014</a> 2009-09-25 10:25 <a href="http://www.cnblogs.com/ofei/archive/2009/09/25/1026166.html#1657645#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
