3 ms·
You can use a borrow checker to replace immutable objects with update-in-place ("ephemeral") ones where feasible.
by zozbot234 2y ago
You can use a borrow checker to replace immutable objects with update-in-place ("ephemeral") ones where feasible.
- fiddlerwoaroof 2y agoAnd, escape analysis and "dynamic extent" hints can have similar effects by stack-allocating intermediate values. Also, you can design your transformations to compose before handing off to a result builder, which is how modern Clojure reduces this problem.