# Performance of IdDict vs Dict

**URL:** https://discourse.julialang.org/t/performance-of-iddict-vs-dict/57589
**Category:** Performance
**Created:** [March 20, 2021, 10:04am UTC](https://discourse.julialang.org/t/performance-of-iddict-vs-dict/57589 "2021-03-20T10:04:45Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![DrChainsaw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/drchainsaw/32/8497_2.png) [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)
#### Post date: [March 20, 2021, 10:25am UTC](https://discourse.julialang.org/t/performance-of-iddict-vs-dict/57589/3 "2021-03-20T10:25:31Z")

</div>

Thanks,

There a a few places where I needs this lookup and they vary a little.

Case1 : keys seem to be in 10 digit range and there are not many of them in use at the time, typically single digit number of keys. The objects are somewhat large, a couple of megabytes.

Case 2: keys are a little bit smaller, typically in the 4 digit range and there is normally a low double digit number of them. Objects are typically large, up to gigabytes but typically 10-100:ds of megabytes.

More background with what the whole thing is supposed to do is in [here](https://discourse.julialang.org/t/tips-for-fast-parsing-of-ad-hoc-protocol) if you are in a reading mood 🙂

---

_[View the full topic](https://discourse.julialang.org/t/performance-of-iddict-vs-dict/57589)._
