Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / June 2004

Tip: Looking for answers? Try searching our database.

ArrayList and Hashtable, which is better?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Laser Lu - 19 Jun 2004 11:03 GMT
Hi, all, I wonder that, between ArrayList and Hashtable, which one will take the better execution efficiency?
Neo - 21 Jun 2004 11:46 GMT
I think the ArrayList efficiency is better than the Hashtable. Because the Hashtable is a dictionary type object.
Signature

let's open source together!

> Hi, all, I wonder that, between ArrayList and Hashtable, which one will take the better execution efficiency?
Stefano \ - 21 Jun 2004 12:56 GMT
> Hi, all, I wonder that, between ArrayList and Hashtable, which one will take the better execution efficiency?

It depends. Item insert efficiency? Item lookup efficiency? Item lookup by
index? Iten lookup by key? Item delete efficiency? Serialization efficiency?
Signature

 WildHeart'2k4

Greg Young - 21 Jun 2004 21:02 GMT
This is an identical question to "What is better a linked list or a hash
table". I can tell you point blank that for searching the hashtable will
generally outperform the arraylist (especially with large sets) but the
arraylist can be more efficient at sorting (i.e. sortedlist). In order to
state anything further one would need to know the problem domain.

> Hi, all, I wonder that, between ArrayList and Hashtable, which one will take the better execution efficiency?

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.