# (Not) Giving up on dispatch

**URL:** <https://discourse.julialang.org/t/not-giving-up-on-dispatch/66797>\
**Category:** General Usage\
**Tags:** multidispatch\
**Created:** [August 22, 2021, 8:40am UTC](https://discourse.julialang.org/t/not-giving-up-on-dispatch/66797 "2021-08-22T08:40:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [August 22, 2021, 8:58am UTC](https://discourse.julialang.org/t/not-giving-up-on-dispatch/66797/2 "2021-08-22T08:58:41Z")

</div>

I mean, the function by @DNF [here](https://discourse.julialang.org/t/how-to-dispatch-this-serializer-function/65981/12) seems pretty much optimal to me? The union splitting mentioned further down is only relevant if you want to eek out the absolute maximum of performance (and wouldn’t be done how you’ve done it in your OP here anyway).

As has been mentioned in your original thread, trying to differentiate structs from `Any` is a fools’ errand - there is no semantic difference.

---

_[View the full topic](https://discourse.julialang.org/t/not-giving-up-on-dispatch/66797)._
