diff --git a/src/allmydata/encode.py b/src/allmydata/encode.py index 80c01aadc..ceba80b20 100644 --- a/src/allmydata/encode.py +++ b/src/allmydata/encode.py @@ -100,8 +100,9 @@ class PyRSEncoder(object): # TODO: this will write a 733kB file called 'ffield.lut.8' in the current # directory the first time it is run, to cache the lookup table for later - # use. It appears to take about 15 seconds to create this the first time. - # Make sure this file winds up somewhere reasonable. + # use. It appears to take about 15 seconds to create this the first time, + # and about 0.5s to load it in each time afterwards. Make sure this file + # winds up somewhere reasonable. # TODO: the encoder/decoder RSCode object depends upon the number of # required/total shares, but not upon the data. We could probably save a @@ -109,6 +110,9 @@ class PyRSEncoder(object): # any time we use the same required/total share numbers (which will # probably be always). + # on my workstation (fluxx, a 3.5GHz Athlon), this encodes data at a rate + # of 6.7kBps. Zooko's mom's 1.8GHz G5 got 2.2kBps . + def set_params(self, data_size, required_shares, total_shares): assert required_shares <= total_shares self.data_size = data_size diff --git a/src/allmydata/test/test_encode_share.py b/src/allmydata/test/test_encode_share.py index 1f8873510..1e707ecd8 100644 --- a/src/allmydata/test/test_encode_share.py +++ b/src/allmydata/test/test_encode_share.py @@ -81,12 +81,16 @@ class Tester: return d def test_encode(self): + if os.uname()[1] == "slave3" and self.enc_class == PyRSEncoder: + raise unittest.SkipTest("slave3 is really slow") return self.do_test(1000, 25, 100) def test_encode1(self): return self.do_test(8, 8, 16) def test_encode2(self): + if os.uname()[1] == "slave3" and self.enc_class == PyRSEncoder: + raise unittest.SkipTest("slave3 is really slow") return self.do_test(123, 25, 100) def test_sizes(self):