]> git.lizzy.rs Git - rust.git/commit
collections: Move optimized String::from_str to String::from
authorErick Tryzelaar <erick.tryzelaar@gmail.com>
Sun, 19 Apr 2015 17:59:06 +0000 (10:59 -0700)
committerErick Tryzelaar <erick.tryzelaar@gmail.com>
Sun, 19 Apr 2015 17:59:06 +0000 (10:59 -0700)
commitf055054eab2a510ad3252599a015f660eef6aedd
tree51469e5508a88c70fed0c0a6f38748ab5433c1cd
parent00978a9879d882002c59c5f3474fbe0b858963a7
collections: Move optimized String::from_str to String::from

This implementation is currently about 3-4 times faster than using
the `.to_string()` based approach.
src/libcollections/string.rs
src/libcollectionstest/string.rs