Make it way faster by removing redundant checks

This commit is contained in:
fantacell 2025-08-26 16:37:32 +02:00
parent ea14bbbfa8
commit fff15e983e

View file

@ -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,