]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
reduce MAX_SEGMENT_SIZE from 2MB to 1MB, to compensate for the large blocks that...
authorBrian Warner <warner@allmydata.com>
Mon, 16 Jul 2007 20:48:34 +0000 (13:48 -0700)
committerBrian Warner <warner@allmydata.com>
Mon, 16 Jul 2007 20:48:34 +0000 (13:48 -0700)
src/allmydata/encode.py
src/allmydata/interfaces.py

index 246bf8b40c24f8516bf1717fd886c58d06272b53..ce470c95354ff858c1f829113fa568fdcf6b7f59 100644 (file)
@@ -73,7 +73,7 @@ class Encoder(object):
     NEEDED_SHARES = 25
     SHARES_OF_HAPPINESS = 75
     TOTAL_SHARES = 100
-    MAX_SEGMENT_SIZE = 2*MiB
+    MAX_SEGMENT_SIZE = 1*MiB
 
     def __init__(self, options={}):
         object.__init__(self)
index 5462d0015838eb7f0e54a18024e327b9a3065d82..2b4f4829f06d035e39c108aaeabc482ba8cf325c 100644 (file)
@@ -14,7 +14,7 @@ FURL = StringConstraint(1000)
 StorageIndex = StringConstraint(32)
 URI = StringConstraint(300) # kind of arbitrary
 MAX_BUCKETS = 200  # per peer
-ShareData = StringConstraint(700000) # 2MB segment / k=3 = 670kB
+ShareData = StringConstraint(400000) # 1MB segment / k=3 = 334kB
 URIExtensionData = StringConstraint(1000)
 
 class RIIntroducerClient(RemoteInterface):