-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched to the two-way algorithm for string searching
test str::bench::bench_contains_bad_naive ... bench: 300 ns/iter (+/- 12) from 1309 ns/iter (+/- 36) test str::bench::bench_contains_equal ... bench: 154 ns/iter (+/- 7) from 137 ns/iter (+/- 2) test str::bench::bench_contains_short_long ... bench: 2998 ns/iter (+/- 74) from 5473 ns/iter (+/- 14) test str::bench::bench_contains_short_short ... bench: 65 ns/iter (+/- 2) from 57 ns/iter (+/- 6)
- Loading branch information
Jonathan S
committed
May 15, 2014
1 parent
8a32a2a
commit 39cb5b1
Showing
1 changed file
with
206 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39cb5b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from brson
at gereeter@39cb5b1
39cb5b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging gereeter/rust/two-way-search = 39cb5b1 into auto
39cb5b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gereeter/rust/two-way-search = 39cb5b1 merged ok, testing candidate = cea4803
39cb5b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/5814
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/5812
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/4907
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/4916
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/5911
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/5000
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/5008
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/5914
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/4999
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/5005
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/5067
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/2800
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/5907
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/5003
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/5018
39cb5b1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = cea4803