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):
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,7 +112,8 @@ class BigFile(File):
btree.write(read(next-pos), offset+pos)
pos = file.tell()
if serialize:
return btree, len(btree)
def _range_request_handler(self, REQUEST, RESPONSE):
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