摘要:
单个检索Dictionary是O1,绝对优势遍历Dictionary遍历所需时间约是List的2倍;遍历时尽量使用foreach (var item in dictionary.Values),而不是foreach (var item in dictionary),后者比前者慢1.5倍。添加Dictionary的插入新项的时间比List慢2倍 阅读全文
posted @ 2009-05-11 13:19
海龟
阅读(127)
评论(0)
推荐(0)
浙公网安备 33010602011771号