mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 19:40:37 +00:00
339540274b
* add changes * fix for vectorize * fix bug * add new bench * use new algorithms * add latest updates * save progress * hack even more * add more changes * change library * go mod * fix deps * fix dumb bug * add flag and remove redundant code * clean up better * remove those ones * clean up benches * clean up benches * cleanup * gaz * revert change * potuz's review * potuz's review * potuz's review * gaz * potuz's review * remove cyclical import * revert ide changes * potuz's review * return
18 lines
504 B
Go
18 lines
504 B
Go
package htr
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/gohashtree"
|
|
)
|
|
|
|
// VectorizedSha256 takes a list of roots and hashes them using CPU
|
|
// specific vector instructions. Depending on host machine's specific
|
|
// hardware configuration, using this routine can lead to a significant
|
|
// performance improvement compared to the default method of hashing
|
|
// lists.
|
|
func VectorizedSha256(inputList [][32]byte, outputList [][32]byte) {
|
|
err := gohashtree.Hash(outputList, inputList)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|