# Array of union causing 10x slowdown

**URL:** <https://discourse.julialang.org/t/array-of-union-causing-10x-slowdown/91341>\
**Category:** Performance\
**Tags:** type-stability\
**Created:** [December 7, 2022, 2:48am UTC](https://discourse.julialang.org/t/array-of-union-causing-10x-slowdown/91341 "2022-12-07T02:48:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [December 7, 2022, 2:56am UTC](https://discourse.julialang.org/t/array-of-union-causing-10x-slowdown/91341/2 "2022-12-07T02:56:25Z")

</div>

maybe [Allocation and slow down when # of types involved increase (slower than C++ virtual methods)](https://discourse.julialang.org/t/allocation-and-slow-down-when-of-types-involved-increase-slower-than-c-virtual-methods/87656)

---

_[View the full topic](https://discourse.julialang.org/t/array-of-union-causing-10x-slowdown/91341)._
