mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 12:40:24 +03:00
replace all "crypto/sha256" with "github.com/minio/sha256-simd" (#5391)
This change replaces all imports of "crypto/sha256" with "github.com/minio/sha256-simd". The sha256-simd package is faster on ARM64 (NEON instructions) and can take advantage of AVX-512 in certain scenarios. Fixes #5374
This commit is contained in:
committed by
kannappanr
parent
a020a70484
commit
d0a43af616
+1
-1
@@ -19,7 +19,6 @@ package cmd
|
||||
import (
|
||||
"bufio"
|
||||
"crypto"
|
||||
_ "crypto/sha256" // Needed for sha256 hash verifier.
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
@@ -33,6 +32,7 @@ import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/inconshreveable/go-update"
|
||||
"github.com/minio/cli"
|
||||
_ "github.com/minio/sha256-simd" // Needed for sha256 hash verifier.
|
||||
"github.com/segmentio/go-prompt"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user