speed up ZAM compilation by capping function size when inlining

This commit is contained in:
Vern Paxson 2022-05-14 14:52:31 -07:00
parent 0c2f04548a
commit 7d00ce0082
13 changed files with 79 additions and 14 deletions

View file

@ -26,6 +26,10 @@ public:
// Whether this statement is free of the possible influence
// of conditional code.
bool is_free_of_conditionals = true;
// Number of statements and expressions in a function body.
int num_stmts = 0;
int num_exprs = 0;
};
} // namespace zeek::detail