News for hackers. Stuff that matters.
Re:Rusty Ownership and the Lifecycle’s Stone by mplanchard on Sunday November 27, 2022 @07:53PM (#33768622)
Huge is maybe a strong term. The cost of a clone is hugely dependent on the size of the data being cloned. Avoiding clones of large data structures is important, but even that is unlikely to be a bottleneck outside of a hot path.

Arcs can be expensive, but once you’ve got the sense for lifetimes, they aren’t that hard to avoid.

There are no comments on this comment yet.