mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +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
|
@ -393,7 +393,6 @@ void termination_signal()
|
|||
{
|
||||
set_processing_status("TERMINATING", "termination_signal");
|
||||
|
||||
Val sval(signal_val, TYPE_COUNT);
|
||||
reporter->Info("received termination signal");
|
||||
net_get_final_stats();
|
||||
done_with_network();
|
||||
|
@ -1177,7 +1176,7 @@ int main(int argc, char** argv)
|
|||
|
||||
val_list* vl = new val_list;
|
||||
vl->append(new StringVal(i->name.c_str()));
|
||||
vl->append(new Val(i->include_level, TYPE_COUNT));
|
||||
vl->append(val_mgr->GetCount(i->include_level));
|
||||
mgr.QueueEvent(bro_script_loaded, vl);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue