From: Brian Warner Date: Sat, 8 Mar 2008 02:24:51 +0000 (-0700) Subject: lower max_segsize for immutable files to 128KiB, to make download-progress smoother... X-Git-Tag: allmydata-tahoe-0.9.0~50 X-Git-Url: https://git.rkrishnan.org/%3C?a=commitdiff_plain;h=567979ba855eef9686380ccb34cd44cc283dd0a3;p=tahoe-lafs%2Ftahoe-lafs.git lower max_segsize for immutable files to 128KiB, to make download-progress smoother and improve alacrity. Closes #252. Note that mutable files continue to use 1MiB segments. --- diff --git a/src/allmydata/client.py b/src/allmydata/client.py index 3e5544a1..732d2074 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -46,7 +46,7 @@ class Client(node.Node, testutil.PollMixin): DEFAULT_ENCODING_PARAMETERS = {"k": 3, "happy": 7, "n": 10, - "max_segment_size": 1*MiB, + "max_segment_size": 128*KiB, } def __init__(self, basedir="."): diff --git a/src/allmydata/upload.py b/src/allmydata/upload.py index 72a728f6..a44ecdb8 100644 --- a/src/allmydata/upload.py +++ b/src/allmydata/upload.py @@ -1030,7 +1030,7 @@ class AssistedUploader: return self._upload_status class BaseUploadable: - default_max_segment_size = 1*MiB # overridden by max_segment_size + default_max_segment_size = 128*KiB # overridden by max_segment_size default_encoding_param_k = 3 # overridden by encoding_parameters default_encoding_param_happy = 7 default_encoding_param_n = 10