mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Don't include locations into serialization when cloning values.
This should save some memory, see BIT-1161.
This commit is contained in:
parent
2f6146aa55
commit
806851a21e
4 changed files with 8 additions and 2 deletions
|
@ -80,6 +80,7 @@ Val* Val::Clone() const
|
|||
CloneSerializer ss(form);
|
||||
SerialInfo sinfo(&ss);
|
||||
sinfo.cache = false;
|
||||
sinfo.include_locations = false;
|
||||
|
||||
if ( ! this->Serialize(&sinfo) )
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue