Commit bb669f59 authored by Sebastien Robin's avatar Sebastien Robin

BigFile: allow to disable serialization to save space

parent 0ace6ed8
......@@ -75,7 +75,7 @@ class BigFile(File):
"""
self._setContentMd5(None)
def _read_data(self, file, data=None):
def _read_data(self, file, data=None, serialize=True):
# We might need to make this value configurable. It is important to
# consider the max quantity of object used in the cache. With a default
......@@ -112,6 +112,7 @@ class BigFile(File):
btree.write(read(next-pos), offset+pos)
pos = file.tell()
if serialize:
self.serialize()
return btree, len(btree)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment