Some fun optimizations that Rust could enable I've learned about in the last few days: - "placement new" to allocate things bigger than the stack - "[N]RVO" so fn calls from A -> B -> C become A -> C - "anti-aliasing" to allow ownership rules to inform optimizations ("use once")
-
Show this thread
-
Replying to @yoshuawuyts
(A->B->C getting collapsed to remove the B is inlining, not NRVO. NRVO is about return values being written to the parent function's stack frame)
1 reply 0 retweets 7 likes
Replying to @ManishEarth
Ah yeah that's what I had in mind, but I guess the words didn't align ehe. Thanks for the clarification!
4:28 PM - 9 Aug 2019
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.