On 6/7/12 3:03 PM, Erick Tryzelaar wrote:
Given this, should we replace things like std::map::str_hash to take
boxed strings? That's one of my big source of warnings.

Hmm, that might well be a good idea. Might even speed up rustc a lot!

It does make sense to *allow* hashmaps to take unique strings, I think, for performance-critical code or for hashmaps that need to be sent between threads. Usually you'd want to move in the strings when doing lookups in this case. But clearly that's inconvenient for most use cases.

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

Reply via email to