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.

This commit is contained in:
Brian Warner 2008-03-07 19:24:51 -07:00
parent bd58f6f799
commit 567979ba85
2 changed files with 2 additions and 2 deletions

View File

@ -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="."):

View File

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