Click here to Skip to main content
15,905,420 members
Home / Discussions / C#
   

C#

 
QuestionHashtable v.s. Dictionary Pin
George_George5-Jun-08 16:56
George_George5-Jun-08 16:56 
AnswerRe: Hashtable v.s. Dictionary Pin
PIEBALDconsult5-Jun-08 16:58
mvePIEBALDconsult5-Jun-08 16:58 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George5-Jun-08 17:00
George_George5-Jun-08 17:00 
GeneralRe: Hashtable v.s. Dictionary Pin
Francofu5-Jun-08 17:08
Francofu5-Jun-08 17:08 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George5-Jun-08 18:25
George_George5-Jun-08 18:25 
GeneralRe: Hashtable v.s. Dictionary Pin
PIEBALDconsult5-Jun-08 17:29
mvePIEBALDconsult5-Jun-08 17:29 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George5-Jun-08 18:24
George_George5-Jun-08 18:24 
AnswerRe: Hashtable v.s. Dictionary Pin
telha5-Jun-08 20:23
telha5-Jun-08 20:23 
GeneralRe: Hashtable v.s. Dictionary Pin
Guffa5-Jun-08 22:56
Guffa5-Jun-08 22:56 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George8-Jun-08 22:50
George_George8-Jun-08 22:50 
GeneralRe: Hashtable v.s. Dictionary Pin
Guffa9-Jun-08 1:18
Guffa9-Jun-08 1:18 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George9-Jun-08 1:27
George_George9-Jun-08 1:27 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George8-Jun-08 23:01
George_George8-Jun-08 23:01 
GeneralRe: Hashtable v.s. Dictionary Pin
Guffa9-Jun-08 6:28
Guffa9-Jun-08 6:28 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George9-Jun-08 17:05
George_George9-Jun-08 17:05 
GeneralRe: Hashtable v.s. Dictionary Pin
Guffa9-Jun-08 21:25
Guffa9-Jun-08 21:25 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George11-Jun-08 1:19
George_George11-Jun-08 1:19 
AnswerRe: Hashtable v.s. Dictionary Pin
Alan Balkany6-Jun-08 3:48
Alan Balkany6-Jun-08 3:48 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George8-Jun-08 22:51
George_George8-Jun-08 22:51 
GeneralRe: Hashtable v.s. Dictionary Pin
Alan Balkany9-Jun-08 3:11
Alan Balkany9-Jun-08 3:11 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George9-Jun-08 17:01
George_George9-Jun-08 17:01 
GeneralRe: Hashtable v.s. Dictionary Pin
Alan Balkany10-Jun-08 3:12
Alan Balkany10-Jun-08 3:12 
A hashtable has a fixed size. When it gets too full its performance degrades, so one strategy is to then create a bigger one, and reinsert all the elements into it.

This has some overhead. Normally a hashtable allows insertion and retrieval in constant time. When the hashtable has to grow regularly, it can increase the time for insertion to O(n) or higher, depending on how often it happens.
GeneralRe: Hashtable v.s. Dictionary Pin
George_George11-Jun-08 1:22
George_George11-Jun-08 1:22 
GeneralRe: Hashtable v.s. Dictionary Pin
Alan Balkany11-Jun-08 3:23
Alan Balkany11-Jun-08 3:23 
GeneralRe: Hashtable v.s. Dictionary Pin
George_George11-Jun-08 3:33
George_George11-Jun-08 3:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.