# Output type from input function handle output type?

**URL:** <https://discourse.julialang.org/t/output-type-from-input-function-handle-output-type/90373>\
**Category:** General Usage\
**Created:** [November 16, 2022, 11:27pm UTC](https://discourse.julialang.org/t/output-type-from-input-function-handle-output-type/90373 "2022-11-16T23:27:45Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![user664303](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/user664303/32/37843_2.png) [@user664303](https://discourse.julialang.org/u/user664303)\
**Post date:** [November 17, 2022, 4:52pm UTC](https://discourse.julialang.org/t/output-type-from-input-function-handle-output-type/90373/14 "2022-11-17T16:52:36Z")

</div>

Thanks. I think in the situation I’m trying to improve, I’m not using dynamic dispatch. Rather, there is some type instability that is causing allocations. I’m not entirely sure. But as I say, thinking about it more, I doubt I’ll be able to do better (in terms of simplicity) than the [solution proposed here](https://discourse.julialang.org/t/experiments-in-speeding-up-runtime-dispatch-for-integer-value-specialization/90355/6).

---

_[View the full topic](https://discourse.julialang.org/t/output-type-from-input-function-handle-output-type/90373)._
