From: zooko Date: Wed, 14 Nov 2007 16:44:26 +0000 (+0530) Subject: zfec: set STRIDE to 8192 after extensive experimentation on my PowerPC G4 867 MHz... X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/frontends/quickstart.html?a=commitdiff_plain;h=908090a43dde3d9d8635f79712aafc9b8cdecefa;p=tahoe-lafs%2Fzfec.git zfec: set STRIDE to 8192 after extensive experimentation on my PowerPC G4 867 MHz (256 KB L2 cache) darcs-hash:c361c87dc18b6938cd0756a084c022484a4220f8 --- diff --git a/zfec/zfec/fec.c b/zfec/zfec/fec.c index 84f4645..e220546 100644 --- a/zfec/zfec/fec.c +++ b/zfec/zfec/fec.c @@ -473,7 +473,7 @@ fec_new(unsigned k, unsigned n) { /* To make sure that we stay within cache in the inner loops of fec_encode() and fec_decode(). */ -#define STRIDE 1024 +#define STRIDE 8192 void fec_encode(const fec_t* code, const gf*restrict const*restrict const src, gf*restrict const*restrict const fecs, const unsigned*restrict const block_nums, size_t num_block_nums, size_t sz) {