Cannot achieve type-stability and get rid of allocations

You can wrap those variables in Ref s that you then mutate instead of rebinding.

3 Likes