Skip to content

Commit 468ab20

Browse files
author
Ethan Pailes
committed
Add an implimentation of Tuned Boyer-Moore.
While the existing literal string searching algorithm leveraging memchr is quite fast, in some case more traditional approaches still make sense. This patch provides an implimentation of Tuned Boyer-Moore as laid out in Fast String Searching by Hume & Sunday. Some refinements to their work were gleened from the grep source. See: #408 See: BurntSushi/ripgrep#617
1 parent 81c8f6b commit 468ab20

File tree

3 files changed

+555
-24
lines changed

3 files changed

+555
-24
lines changed

bench/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ version = "0.1.0"
55
authors = ["The Rust Project Developers"]
66
license = "MIT/Apache-2.0"
77
repository = "https://github.com/rust-lang/regex"
8-
documentation = "http://doc.rust-lang.org/regex/regex_syntax/index.html"
8+
documentation = "http://doc.rust-lang.org/regex/regex/index.html"
99
homepage = "https://github.com/rust-lang/regex"
1010
description = "Regex benchmarks for Rust's and other engines."
1111
build = "build.rs"

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ another matching engine with fixed memory requirements.
514514
extern crate aho_corasick;
515515
extern crate memchr;
516516
extern crate thread_local;
517-
#[cfg(test)] extern crate quickcheck;
517+
#[macro_use] #[cfg(test)] extern crate quickcheck;
518518
extern crate regex_syntax as syntax;
519519
#[cfg(feature = "simd-accel")] extern crate simd;
520520
extern crate utf8_ranges;

0 commit comments

Comments
 (0)