在性能和速度方面

在性能和速度方面

本文介绍了哪个更好? array,ArrayList或List(在性能和速度方面)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我需要快速处理我的页面。以上哪一个是首选?支持有正当理由。 编辑:例如: string str = a,b,c; // str中元素数量的计数不固定 string [] arr = str.Split(' ,') ; ArrayList al = new ArrayList(); al.Add(str.Split(' ,')); 其中哪一项结果更快?解决方案 I require a fast speed in processing my page. Which one of the above is preferred? Support with a valid reason.Edit: For eg:string str = "a,b,c"; //Count of the number of elements in str is not fixedstring[] arr = str.Split(',');ArrayList al = new ArrayList();al.Add(str.Split(','));Which of them gives faster results? 解决方案 这篇关于哪个更好? array,ArrayList或List(在性能和速度方面)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-22 18:12
查看更多