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

@ -1,4 +1,9 @@
2.2-263 | 2014-03-30 20:19:05 +0200
* Don't include locations into serialization when cloning values.
(Robin Sommer)
2.2-262 | 2014-03-30 20:12:47 +0200
* Refactor SerializationFormat::EndWrite and ChunkedIO::Chunk memory

View file

@ -1 +1 @@
2.2-262
2.2-263

@ -1 +1 @@
Subproject commit f8273c9eb5db1168c21b298cd3af4f9b4b008717
Subproject commit f6308a0f7eb0bef8279fb1ed282474291633cdb9

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;