mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-02 12:37:32 +08: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
|
@ -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 New Issue
Block a user