Click here to Skip to main content
15,891,567 members
Home / Discussions / C#
   

C#

 
AnswerRe: Hashtable vs Dictionary. Pin
Sandeep Akhare6-Sep-07 2:12
Sandeep Akhare6-Sep-07 2:12 
AnswerRe: Hashtable vs Dictionary. Pin
Pete O'Hanlon6-Sep-07 2:49
mvePete O'Hanlon6-Sep-07 2:49 
AnswerRe: Hashtable vs Dictionary. Pin
Matthew Cuba6-Sep-07 4:47
Matthew Cuba6-Sep-07 4:47 
GeneralRe: Hashtable vs Dictionary. Pin
Jason Hanford-Smith6-Sep-07 7:13
Jason Hanford-Smith6-Sep-07 7:13 
GeneralRe: Hashtable vs Dictionary. Pin
Matthew Cuba6-Sep-07 7:32
Matthew Cuba6-Sep-07 7:32 
GeneralRe: Hashtable vs Dictionary. Pin
Jason Hanford-Smith6-Sep-07 7:43
Jason Hanford-Smith6-Sep-07 7:43 
GeneralRe: Hashtable vs Dictionary. Pin
Matthew Cuba6-Sep-07 7:53
Matthew Cuba6-Sep-07 7:53 
GeneralRe: Hashtable vs Dictionary. Pin
Jason Hanford-Smith6-Sep-07 9:12
Jason Hanford-Smith6-Sep-07 9:12 
Apologies, my mistake.

Looking at it further (using Reflector), the Hashtable does some interesting things with the load factor provided that will force an automatic resize if the number of "buckets" used comes close the the number of slots available.

To test this, how about having two Hashtables using to two different initial sizes and timing the add/retrieve speed of each up to the smaller count. The speeds should be the same.

I think you'll only see the degredation when you go beyond it... it'll keep expanding to the next nearest prime above two times the current count. Which sounds like a big jump, but you'd probably hit it again pretty quick on a 10,000,000 loop.

Hope some (any) of that made sense.
GeneralRe: Hashtable vs Dictionary. Pin
Matthew Cuba6-Sep-07 9:18
Matthew Cuba6-Sep-07 9:18 
QuestionFlickering PictureBoxes in C# Pin
Ermak866-Sep-07 1:59
Ermak866-Sep-07 1:59 
AnswerRe: Flickering PictureBoxes in C# Pin
Christian Graus6-Sep-07 2:11
protectorChristian Graus6-Sep-07 2:11 
GeneralRe: Flickering PictureBoxes in C# Pin
Ermak866-Sep-07 2:14
Ermak866-Sep-07 2:14 
GeneralRe: Flickering PictureBoxes in C# Pin
Christian Graus6-Sep-07 2:39
protectorChristian Graus6-Sep-07 2:39 
QuestionCash for Help! Pin
MicealG6-Sep-07 1:42
MicealG6-Sep-07 1:42 
JokeRe: Cash for Help! Pin
Sandeep Akhare6-Sep-07 1:46
Sandeep Akhare6-Sep-07 1:46 
GeneralRe: Cash for Help! Pin
MicealG6-Sep-07 1:50
MicealG6-Sep-07 1:50 
GeneralRe: Cash for Help! [modified] Pin
Sandeep Akhare6-Sep-07 2:00
Sandeep Akhare6-Sep-07 2:00 
GeneralRe: Cash for Help! Pin
MicealG6-Sep-07 3:37
MicealG6-Sep-07 3:37 
AnswerRe: Cash for Help! Pin
Ravi Bhavnani6-Sep-07 1:54
professionalRavi Bhavnani6-Sep-07 1:54 
GeneralStill No Answer Pin
MicealG6-Sep-07 2:01
MicealG6-Sep-07 2:01 
AnswerRe: Cash for Help! Pin
J4amieC6-Sep-07 3:53
J4amieC6-Sep-07 3:53 
GeneralRe: Cash for Help! Pin
MicealG6-Sep-07 3:57
MicealG6-Sep-07 3:57 
GeneralRe: Cash for Help! Pin
J4amieC6-Sep-07 4:13
J4amieC6-Sep-07 4:13 
GeneralRe: Cash for Help! Pin
MicealG6-Sep-07 4:43
MicealG6-Sep-07 4:43 
GeneralRe: Cash for Help! Pin
J4amieC6-Sep-07 4:49
J4amieC6-Sep-07 4:49 

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.