Best approach for runtime dispatching inside a hot loop (heterogeneous tree structure)

Wow cool, thanks. For reference, this is the post: Match LLVM with Julia source? - #3 by Stephen_Vavasis.