From 908090a43dde3d9d8635f79712aafc9b8cdecefa Mon Sep 17 00:00:00 2001 From: zooko <zooko@zooko.com> Date: Wed, 14 Nov 2007 22:14:26 +0530 Subject: [PATCH] zfec: set STRIDE to 8192 after extensive experimentation on my PowerPC G4 867 MHz (256 KB L2 cache) darcs-hash:c361c87dc18b6938cd0756a084c022484a4220f8 --- zfec/zfec/fec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.45.2