Pre-allocate and re-use Vals for bool, int, count, enum and empty string

This commit is contained in:
Jon Siwek 2019-01-09 14:47:58 -06:00
parent dcbef9cbe3
commit 2982765128
136 changed files with 1859 additions and 1811 deletions

View file

@ -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);
}