mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
Add Component::GetCanonicalNameVal to avoid extra StringVal allocations
This commit is contained in:
parent
22ab3bb0b3
commit
a680c2faf0
5 changed files with 51 additions and 3 deletions
|
@ -16,6 +16,7 @@ Component::Component(component::Type arg_type, const std::string& arg_name,
|
|||
tag_subtype(tag_subtype)
|
||||
{
|
||||
canon_name = util::canonify_name(name);
|
||||
canon_name_val = make_intrusive<StringVal>(canon_name);
|
||||
}
|
||||
|
||||
void Component::Describe(ODesc* d) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue