Make it way faster by removing redundant checks
This commit is contained in:
parent
ea14bbbfa8
commit
fff15e983e
1 changed files with 1 additions and 1 deletions
|
@ -596,7 +596,7 @@ impl FuzzyBoundary {
|
||||||
);
|
);
|
||||||
let boundaries = forwards
|
let boundaries = forwards
|
||||||
.interleave(backwards)
|
.interleave(backwards)
|
||||||
.take(4)
|
.take(2)
|
||||||
.filter_map(|(identifier, reach_boundary)| reach_boundary(identifier, map))
|
.filter_map(|(identifier, reach_boundary)| reach_boundary(identifier, map))
|
||||||
.filter(|boundary| match boundary.cmp(&from) {
|
.filter(|boundary| match boundary.cmp(&from) {
|
||||||
Ordering::Equal => true,
|
Ordering::Equal => true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue