# 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
# 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
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):