]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Prefetch Input in Incompressible Sections (+0.25% Speed)
authorW. Felix Handte <w@felixhandte.com>
Wed, 18 Aug 2021 19:21:43 +0000 (15:21 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 1 Sep 2021 18:15:03 +0000 (14:15 -0400)
lib/compress/zstd_fast.c

index 411ffc118692e9ec9254b274486f0552dfa49850..f7df666811ea8b79eefa23898970bb5ec057cf67 100644 (file)
@@ -337,6 +337,7 @@ _start: /* Requires: ip0 */
         /* advance to next positions */
         {
             if (ip1 >= nextStep) {
+                PREFETCH_L1(ip1 + 64);
                 step++;
                 nextStep += kStepIncr;
             }