]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #25158 - koute:master, r=alexcrichton
authorSteve Klabnik <steve@steveklabnik.com>
Sun, 10 May 2015 20:44:22 +0000 (16:44 -0400)
committerSteve Klabnik <steve@steveklabnik.com>
Sun, 10 May 2015 20:44:22 +0000 (16:44 -0400)
commitad1c0c57b8710a569a2ed573a1d47b98fe5616b1
treec4440cc3928f68867cdd563123c96d869801c3a2
parent371eb8777179411942a31d479ca6f142849ad6ca
parenta168dbad15e108fce02a996fc8f72803460b7a55
Rollup merge of #25158 - koute:master, r=alexcrichton

I was profiling my code again and this time AsRef<str> for String
was eating up a considerable chunk of my runtime; adding the inline
annotation made the program run almost twice as fast!

While I was at it I also added the annotation to other implementations
of AsRef as well as AsMut.
src/libcollections/string.rs