This adds autodetection of the fastest hashing library on startup, thus handling the performance regression. It also adds an environment variable to control the selection, STHASHING=standard (Go standard library version, avoids SIGILL crash when the minio library has bugs on odd CPUs), STHASHING=minio (to force using the minio version) or unset for the default autodetection. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3617
This commit is contained in:
committed by
Audrius Butkevicius
parent
5f01afb7ea
commit
d328e0fb75
@@ -20,7 +20,7 @@ import (
|
||||
"io"
|
||||
"math/big"
|
||||
|
||||
"github.com/minio/sha256-simd"
|
||||
"github.com/syncthing/syncthing/lib/sha256"
|
||||
)
|
||||
|
||||
// GenerateKeys returns a new key pair, with the private and public key
|
||||
|
||||
Reference in New Issue
Block a user