mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
Don't always regenerate the exported array
This made launching external commands about 30% slower.
This commit is contained in:
2
fish-rust/src/env/environment_impl.rs
vendored
2
fish-rust/src/env/environment_impl.rs
vendored
@@ -584,7 +584,7 @@ fn export_array_needs_regeneration(&self) -> bool {
|
||||
}
|
||||
|
||||
let mut cursor = self.export_array_generations.iter().fuse();
|
||||
let mut mismatch = true;
|
||||
let mut mismatch = false;
|
||||
self.enumerate_generations(|gen| {
|
||||
if cursor.next().cloned() != Some(gen) {
|
||||
mismatch = true;
|
||||
|
||||
Reference in New Issue
Block a user