# Slow code with Union and Box

**URL:** <https://discourse.julialang.org/t/slow-code-with-union-and-box/111221>\
**Category:** General Usage\
**Created:** [March 5, 2024, 11:17pm UTC](https://discourse.julialang.org/t/slow-code-with-union-and-box/111221 "2024-03-05T23:17:44Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [March 6, 2024, 1:02am UTC](https://discourse.julialang.org/t/slow-code-with-union-and-box/111221/8 "2024-03-06T01:02:12Z")

</div>

hmm, we (as a community) have been here: [Allocation and slow down when # of types involved increase (slower than C++ virtual methods) - #58 by peremato](https://discourse.julialang.org/t/allocation-and-slow-down-when-of-types-involved-increase-slower-than-c-virtual-methods/87656/58)

---

_[View the full topic](https://discourse.julialang.org/t/slow-code-with-union-and-box/111221)._
