- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I compared the performance of a HashTable againsta generic Dictionary
private void CompareDictionaries()
{
GetItemsFromHashTable();
GetItemsFromDictionary();
}
When we look at results in call list with CompareDictionaries method selected, GetItemsFromHashTable seems to show 25% contribution whereas GetItemsFromDictionary contributed 75 percent.
Both collections were filled with same name value pairs.
A stopwatch timer around these methods show they are taking equal time. The Visual Studio 2005 performance analyzer also shows the same. Why are results different in call list?
Link Copied
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page