From 35932ab2f1e129dce0d19bfa82787dc4dc262eed Mon Sep 17 00:00:00 2001 From: "W. Felix Handte" Date: Wed, 18 Aug 2021 15:21:43 -0400 Subject: [PATCH] Prefetch Input in Incompressible Sections (+0.25% Speed) --- lib/compress/zstd_fast.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/compress/zstd_fast.c b/lib/compress/zstd_fast.c index 411ffc118..f7df66681 100644 --- a/lib/compress/zstd_fast.c +++ b/lib/compress/zstd_fast.c @@ -337,6 +337,7 @@ _start: /* Requires: ip0 */ /* advance to next positions */ { if (ip1 >= nextStep) { + PREFETCH_L1(ip1 + 64); step++; nextStep += kStepIncr; }