¡@

Home 

c++ Programming Glossary: maxnumberofkeys

C++ ~ 1M look-ups in unordered_map with string key works much slower than .NET code

http://stackoverflow.com/questions/8372579/c-1m-look-ups-in-unordered-map-with-string-key-works-much-slower-than-net-c

DictionaryT const int MaxNumberOfRuns 125 const int MaxNumberOfKeys 6838 DictionaryT dictionary dictionary.rehash MaxNumberOfKeys.. 6838 DictionaryT dictionary dictionary.rehash MaxNumberOfKeys auto timer Stopwatch StartNew int lookupCount 0 char keyBuffer.. keyPrefixLen std strlen keyBuffer run MaxNumberOfRuns MaxNumberOfKeys iterations for int runId 0 runId MaxNumberOfRuns runId for int..