mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Improve codegen of generation_list_t::operator==
Bizarrely comparing three integers showed up heavy in traces. This reduces the time in seq_echo by about 500 msec.
This commit is contained in:
parent
5bee1e3e1f
commit
3dcb39f8ec
1 changed files with 4 additions and 1 deletions
|
@ -107,7 +107,10 @@ class generation_list_t {
|
|||
return valid;
|
||||
}
|
||||
|
||||
bool operator==(const generation_list_t &rhs) const { return as_array() == rhs.as_array(); }
|
||||
bool operator==(const generation_list_t &rhs) const {
|
||||
return sighupint == rhs.sighupint && sigchld == rhs.sigchld &&
|
||||
internal_exit == rhs.internal_exit;
|
||||
}
|
||||
|
||||
bool operator!=(const generation_list_t &rhs) const { return !(*this == rhs); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue