Our Rc always has strong count of 0 or 1 + potentially weak references.
We should try hand rolling a dedicated type that reduces overhead. We only need 1 bit for checking if the object is alive or not (steal it from the weak counter). Plus a single allocation.
Our Rc always has strong count of 0 or 1 + potentially weak references.
We should try hand rolling a dedicated type that reduces overhead. We only need 1 bit for checking if the object is alive or not (steal it from the weak counter). Plus a single allocation.