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:
Fabian Homborg 2018-12-30 18:54:09 +01:00 committed by ridiculousfish
parent 96f7924661
commit 171ae99295

View file

@ -108,7 +108,6 @@ parser_t::~parser_t() = default;
static parser_t s_principal_parser; static parser_t s_principal_parser;
parser_t &parser_t::principal_parser() { parser_t &parser_t::principal_parser() {
ASSERT_IS_NOT_FORKED_CHILD();
ASSERT_IS_MAIN_THREAD(); ASSERT_IS_MAIN_THREAD();
return s_principal_parser; return s_principal_parser;
} }