]> git.lizzy.rs Git - rust.git/commit
StrSearcher: Explicitly separate the long and short cases
authorUlrik Sverdrup <root@localhost>
Wed, 24 Jun 2015 14:22:09 +0000 (16:22 +0200)
committerUlrik Sverdrup <root@localhost>
Wed, 24 Jun 2015 14:22:09 +0000 (16:22 +0200)
commit274bb24efdbeed0ab1a91f3c02f86551ef16eac7
tree274c90722829f1cb0b81aee5b176465737ec362d
parent71006bd6545015d7ae8e4c18589812bc1f6373dd
StrSearcher: Explicitly separate the long and short cases

This is needed to not drop performance, after the trait-based changes.
Force separate versions of the next method to be generated for the short
and long period cases.
src/libcore/str/pattern.rs