I know type stability of functions is a big factor in Julia performance, but I also Julia can also optimize Union{T,Nothing} where T
in a lot of cases. Does this extend to functions without declared return types? I know that Julia can be efficient about some other kinds of Unions as well, and I’m curious when these optimizations can be applied (relative to type stability of functions and elsewhere).
Thanks