On 5/29/13 11:39 PM, Mikhail Zabaluev wrote:
Why even have the option? The programmer almost never has better
information than the compiler to decide whether a function could be
beneficially inlined at each particular call site. And as we see with
the Rust code base itself, this has a great potential of being
unwittingly abused. Look, a "make my function run fast" directive!

uint::range and vec::each weren't always being inlined. (It's very important to inline them.) Unfortunately it seems it was taken too far.

Patrick

_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to