From 567979ba855eef9686380ccb34cd44cc283dd0a3 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Fri, 7 Mar 2008 19:24:51 -0700 Subject: [PATCH] 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. --- src/allmydata/client.py | 2 +- src/allmydata/upload.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.45.2