mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Fix quadratic time complexity with large strides (#6727)
This commit is contained in:
@ -215,9 +215,7 @@ impl Iterator for EachWindowIterator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for _ in 0..current_count {
|
group = group[current_count..].to_vec();
|
||||||
let _ = group.remove(0);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if group.is_empty() || current_count == 0 {
|
if group.is_empty() || current_count == 0 {
|
||||||
|
Reference in New Issue
Block a user