mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-12 06:41:14 -03: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:
committed by
ridiculousfish
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user