# Fast lookup of bits types using dispatch

**URL:** <https://discourse.julialang.org/t/fast-lookup-of-bits-types-using-dispatch/3809>\
**Category:** General Usage\
**Tags:** question\
**Created:** [May 19, 2017, 3:31pm UTC](https://discourse.julialang.org/t/fast-lookup-of-bits-types-using-dispatch/3809 "2017-05-19T15:31:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [May 19, 2017, 3:53pm UTC](https://discourse.julialang.org/t/fast-lookup-of-bits-types-using-dispatch/3809/3 "2017-05-19T15:53:31Z")

</div>

And ref [Dispatch time using `Val` is an order of magnitude slower than looking up with `Dict` - #2 by yuyichao](https://discourse.julialang.org/t/dispatch-time-using-val-is-an-order-of-magnitude-slower-than-looking-up-with-dict/3543/2) You are trying to express something simple using something fundamentally more complex and this will never make things faster.

---

_[View the full topic](https://discourse.julialang.org/t/fast-lookup-of-bits-types-using-dispatch/3809)._
