News for hackers. Stuff that matters.
Re:Rust Lifetimes by steveklabnik on Sunday November 01, 2015 @09:15AM (#10486447)
I _think_ the author was just trying to convey that it's no longer stack allocated in this case. Escape analysis is really nice, but when you need performance, it can get in the way. I've talked to people who ended up having to leave a ton of comments with the equivalent of "dont do this, it messes up escape analysis and performance goes south" all over their codebase.
Re:Rust Lifetimes by Manishearth on Sunday November 01, 2015 @10:14AM (#10486591)
I'm actually considering adding escape analysis to _Rust_ (as a part of clippy, that is) so that we can advise users to convert heap allocated Vec/Boxes to stack allocated thingies.
Re:Rust Lifetimes by steveklabnik on Sunday November 01, 2015 @10:30AM (#10486670)
That would be super cool!