c# - Which one is more efficient : List<int> or int[] -
Can anyone tell me which list & lt; Int & gt; Better between
and int []
. Because I am working on a project and as you know that efficiency is now a matter of so much important concern.
If you've added some introductory notes to your post, then it would be great :)
(should the list be resizable)? & Lt; Integer & gt; : Int []
List
that resizes as needed, with JIT inlining, they should execute almost equally, but JIT will be Int []
will be an easy time to exclude extra performance because it is a CLI old, with dedicated il instructions.
Comments
Post a Comment