Maybe you can try this https://github.com/minio/sha256-simd
在 2017年10月17日星期二 UTC+8下午4:13:41,Christian LeMoussel写道:
>
> I need to calculate 10 millions of sha256 checksums,
>
> Actually I do this :
>
> var bl int
> var pnb = make([]byte, 10)
> var hash = [32]byte
> var sha256Hash string
> var ste
Thanks for the hint.
I run the test with "go test -race -run TestRace", and* it reports no
error.*
Only one goroutine is listening on "RequestSucessChannel" and
"ClearStatsChannel", *hence only one goroutine is reading / writing to the
map.*
Here is my test code.
package boomer
import (
"t
Sorry for the misleading, these was a race condition, and I have found it.
It's not about reading / writing to the same map.
"this.Entries" is replaced by a new map in a timer, in another goroutine.
在 2017年3月3日星期五 UTC+8下午9:31:12,詹青朋写道:
>
> Hey guys,
>
> Here is my