mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Don't ASSERT_IS_NOT_FORKED_CHILD so much
This is hammered sooo much that it actually hurts performance. for i in (seq 100000); test 1 = 1; end is about 40% (!) slower with it.
This commit is contained in:
parent
96f7924661
commit
171ae99295
1 changed files with 0 additions and 1 deletions
|
@ -108,7 +108,6 @@ parser_t::~parser_t() = default;
|
|||
static parser_t s_principal_parser;
|
||||
|
||||
parser_t &parser_t::principal_parser() {
|
||||
ASSERT_IS_NOT_FORKED_CHILD();
|
||||
ASSERT_IS_MAIN_THREAD();
|
||||
return s_principal_parser;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue