Reference to Objects Very Slow

What are you trying to do? Foo is already a mutable type so there’s no need to put it in a Ref.

Ref is an abstract type so you’ll get terrible performance when using it as the type of a slot.

No. There’s no way to dereference a Ref in a generic way. For Base.RefValue, use ref[].

1 Like