Results 1 to 7 of 7

Thread: Visual Basic .NET - Which Collection Should I Use?

Threaded View

  1. #7
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,958

    Re: Visual Basic .NET - Which Collection Should I Use?

    Quote Originally Posted by Niya View Post
    it was less performant due to all the boxing that would happen with primitive types like Integers and Doubles.
    Quote Originally Posted by Niya View Post
    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
  •  



Click Here to Expand Forum to Full Width