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?