04 2009 档案

摘要:在大量数据的情况下,两者的差距就明显了! String str1 = String.Empty; StringBuilder sb1 = new StringBuilder(); Stopwatch watch1 = new Stopwatch(); watch1.Start(); for (var i = 0; i < 100000; i++) { str1 += "add" + i.To... 阅读全文
posted @ 2009-04-07 17:35 活跃的毛虫 阅读(343) 评论(0) 推荐(0) 编辑