Daniel Lemire
Daniel Lemire
> To index 1 billion keys we may need a footprint of 50GB of memory. Having a billion keys (64-bit integers) in memory would require 8GB. A billion keys is...
The question is whether the warning is legitimate as per the language specification.
As an aside, these functions can be optimized to require just one division instead of two. @imneme knows how!
Can't LTO solve this? `-flto`? Gold linker, etc.
It is being considered for inclusion in Go (version 2) by @robpike https://github.com/golang/go/issues/21835
@dejunlin Without answering your specific question, I'd say that random number generators, in general, should not be expected to be thread-safe. So you want to create one generator per thread.
Pull request invited !
Where is the specification?
(BTW I am the third author of the cited reference. This is news to me.)
@danlark1 Fantastic.