On 04/05/14 07:03 PM, Brian Rogoff wrote:
> Fair enough, but I hope that the Index trait overhaul is merged before
> the ability to use slices like this is removed. To do otherwise would be
> unpleasant.

The ability to grow ~[T] was already removed, and it would be really
nice to remove the remaining users to improve performance by avoiding
expensive conversions from Vec<T>. The original motivation behind Vec<T>
was a performance one (it was just going to become the ~[T]
implementation via a lang item) so it's quite sad that we've introduced
a whole bunch of O(n) copies throughout the compiler to previously O(1)
algorithms.

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to