Use Minio's optimized SHA-256

internal/repository benchmarks on an Intel i7-3770k:

name               old speed      new speed       delta
PackerManager-8     209MB/s ± 1%    291MB/s ± 1%  +38.94%  (p=0.008 n=5+5)
SaveAndEncrypt-8    112MB/s ± 1%    135MB/s ± 1%  +20.25%  (p=0.008 n=5+5)
This commit is contained in:
greatroar committed 2020-04-28 07:57:18 +02:00
1 parent 070d43e290
commit 42a3db05b0
5 files changed
+9 -4

No files matched your search

+2 -1
View File
@@ -2,7 +2,6 @@ package repository
import (
"context"
"crypto/sha256"
"os"
"sync"
@@ -14,6 +13,8 @@ import (
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/fs"
"github.com/restic/restic/internal/pack"
"github.com/minio/sha256-simd"
)
// Saver implements saving data in a backend.