# Warntype when accessing Vector{AbstractType}

**URL:** https://discourse.julialang.org/t/warntype-when-accessing-vector-abstracttype/21863
**Category:** New to Julia
**Created:** [March 14, 2019, 1:19pm UTC](https://discourse.julialang.org/t/warntype-when-accessing-vector-abstracttype/21863 "2019-03-14T13:19:40Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [March 14, 2019, 3:39pm UTC](https://discourse.julialang.org/t/warntype-when-accessing-vector-abstracttype/21863/9 "2019-03-14T15:39:28Z")

</div>

> [@tomtom](#):
>
> isn’t each warntype means slow execution?

Is this in a performance critical section of your code? Did you profile it? If not, just leave it. If it is, it will be reasonably tricky to get fast because operating on a bunch of different things is slow. Except if it is just a small union of different types, then you should encode that. Reference in [How to tell if a type is an efficient small type union?](https://discourse.julialang.org/t/how-to-tell-if-a-type-is-an-efficient-small-type-union/18829) might help.

---

_[View the full topic](https://discourse.julialang.org/t/warntype-when-accessing-vector-abstracttype/21863)._
