Easton Man's Channel
04:36 · Apr 7, 2025 · Mon
Daniel Lemire's blog
Faster shuffling in Go with batching
Telegraph
|
source
Telegraph
Faster shuffling in Go with batching
import "math/rand/v2" func shuffleStandard(data []uint64) { rand.Shuffle(len(data), func(i, j int) { data[i], data[j] = data[j], data[i] }) }
Home
Powered by
BroadcastChannel
&
Sepia