|
-
Mar 7th, 2023, 12:59 PM
#7
Re: Visual Basic .NET - Which Collection Should I Use?
 Originally Posted by Niya
it was less performant due to all the boxing that would happen with primitive types like Integers and Doubles.
 Originally Posted by Niya
I would also note in this case that Redim Preserve may have been preferable to ArrayLists since arrays were as close to generics as one could come in the pre-generic era of .Net
That is a massive understatement, an ArrayList could often be 2 or 3 times slower on reading / modifying small capacities, while in the order of 8 times slower on larger capacities. In most cases it was faster to just redim an array.
Last edited by PlausiblyDamp; Mar 7th, 2023 at 04:47 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|