Don't include locations into serialization when cloning values.

This should save some memory, see BIT-1161.
This commit is contained in:
Robin Sommer 2014-03-30 20:14:33 +02:00
parent 2f6146aa55
commit 806851a21e
4 changed files with 8 additions and 2 deletions

View file

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