¡@

Home 

c++ Programming Glossary: lookupcount

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

MaxNumberOfKeys auto timer Stopwatch StartNew int lookupCount 0 char keyBuffer 100 key_prefix_ size_t keyPrefixLen std strlen.. value in the dictionary data Value keyId runId lookupCount timer.Stop std cout Time timer.GetElapsedMilleseconds ms std.. ms std endl std cout Lookup count lookupCount std endl Prints Time 636 ms Lookup count 854750 F# code open..