Re: Contributing to VoyageMongo (improving insertion/updating speed)
Posted by
Holger Freyther on
Jul 23, 2015; 2:28pm
URL: https://forum.world.st/Contributing-to-VoyageMongo-improving-insertion-updating-speed-tp4838806p4838875.html
> On 23 Jul 2015, at 16:13, Peter Uhnák <
[hidden email]> wrote:
>
> Why it doesn't use ==UUIDGenerator default== like UUID new does?
>>#newVersion generates a timestamp/version for the serialized object.
I think >>#newSeed is abused as on Unix platforms it can provide a somehow
cryptographically secure random number.
> [ UUIDGenerator new makeSeed ] bench. "'1,344 per second’"
But you can even have /dev/urandom block if you read too much. So trying
to use RAND_bytes appears to be a good idea.