mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
Pre-allocate and re-use Vals for bool, int, count, enum and empty string
This commit is contained in:
parent
dcbef9cbe3
commit
2982765128
136 changed files with 1859 additions and 1811 deletions
|
@ -24,7 +24,7 @@ void RuleActionEvent::DoAction(const Rule* parent, RuleEndpointState* state,
|
|||
if ( data )
|
||||
vl->append(new StringVal(len, (const char*)data));
|
||||
else
|
||||
vl->append(new StringVal(""));
|
||||
vl->append(val_mgr->GetEmptyString());
|
||||
|
||||
mgr.QueueEvent(signature_match, vl);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue