PC Review


Reply
Thread Tools Rate Thread

Collection, HashTable or SortedList?

 
 
DraguVaso
Guest
Posts: n/a
 
      5th Aug 2004
Hi,

I read somewhere that it would be better to use a HashTable or a SortedList
instead of a collection in VB.NET. Is this true and why is this better? Is
it faster or more performant or ...?

Any info would be nice!

Pieter


 
Reply With Quote
 
 
 
 
Ken Tucker [MVP]
Guest
Posts: n/a
 
      5th Aug 2004
Hi,

The hashtable and sortedlist store data in a dictonary entry
(key, data) making it easier to look up values. The collection supports the
ilist interface allowing you to databind a collection.

Ken
---------------------------
"DraguVaso" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
Hi,

I read somewhere that it would be better to use a HashTable or a SortedList
instead of a collection in VB.NET. Is this true and why is this better? Is
it faster or more performant or ...?

Any info would be nice!

Pieter



 
Reply With Quote
 
DraguVaso
Guest
Posts: n/a
 
      6th Aug 2004
Hm, but is there anyone of them (or maybe another) that has better
perfomance than the others?

"Ken Tucker [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> The hashtable and sortedlist store data in a dictonary entry
> (key, data) making it easier to look up values. The collection supports

the
> ilist interface allowing you to databind a collection.
>
> Ken
> ---------------------------
> "DraguVaso" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> Hi,
>
> I read somewhere that it would be better to use a HashTable or a

SortedList
> instead of a collection in VB.NET. Is this true and why is this better? Is
> it faster or more performant or ...?
>
> Any info would be nice!
>
> Pieter
>
>
>



 
Reply With Quote
 
Andy Becker
Guest
Posts: n/a
 
      6th Aug 2004
"DraguVaso" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hm, but is there anyone of them (or maybe another) that has better
> perfomance than the others?


I use all three, and have never seen a measurable difference. It is all
fast as blazes.

Best Regards,

Andy


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Which collection object to use similar to SortedList\Hashtable Kiran Microsoft VB .NET 3 18th Feb 2006 06:55 PM
cast sortedlist value as hashtable fizzy Microsoft VB .NET 2 7th Apr 2005 01:47 PM
Static SortedList and Garbage Collection Chris Bardon Microsoft C# .NET 1 4th Oct 2004 05:32 PM
Collection, HashTable or SortedList? DraguVaso Microsoft Dot NET 3 6th Aug 2004 05:18 PM
SortedList Collection - How to enumerate....? Alex Stevens Microsoft VB .NET 1 21st Aug 2003 03:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 PM.