mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
speed up ZAM compilation by capping function size when inlining
This commit is contained in:
parent
0c2f04548a
commit
7d00ce0082
13 changed files with 79 additions and 14 deletions
|
@ -2329,6 +2329,10 @@ ExprPtr CallExpr::Inline(Inliner* inl)
|
|||
{
|
||||
auto new_me = inl->CheckForInlining({NewRef{}, this});
|
||||
|
||||
if ( ! new_me )
|
||||
// All done with inlining.
|
||||
return ThisPtr();
|
||||
|
||||
if ( new_me.get() != this )
|
||||
return new_me;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue