ArrayList 性能为什么差,来看看源码!
摘要:都说ArrayList的性能差,这是为什么呢?我们知道Array是用数组的实现,初始化时要固定数组的大小。List是用链表实现,大小是可变的。而ArrayList是用数组实现的可变大小。源码:using System;namespace LinearList{ public class Arr...
阅读全文
posted @ 2015-02-05 10:44
posted @ 2015-02-05 10:44
posted @ 2015-02-02 17:49