Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ route-recognizer = "0.3"
gonzales = "0.0.3-beta"
path-tree = "0.8"
routefinder = "0.5"
wayfind = "0.7"
wayfind = "0.8"

# Examples
tower = { version = "0.5.2", features = ["make", "util"] }
Expand Down
8 changes: 2 additions & 6 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,11 @@ fn compare_routers(c: &mut Criterion) {
for route in routes!(brackets) {
wayfind.insert(route, true).unwrap();
}
let wayfind_paths = paths
.iter()
.copied()
.flat_map(wayfind::Path::new)
.collect::<Vec<_>>();
let wayfind_paths = paths.to_vec();
group.bench_function("wayfind", |b| {
b.iter(|| {
for path in black_box(&wayfind_paths) {
let result = black_box(wayfind.search(&path).unwrap().unwrap());
let result = black_box(wayfind.search(path).unwrap());
assert!(*result.data);
}
});
Expand Down
Loading