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