[issue45556] uuid.uuid4() fast optimization

2021-10-21 Thread Mosquito
Change by Mosquito : -- pull_requests: +27402 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29125 ___ Python tracker <https://bugs.python.org/issu

[issue45556] uuid.uuid4() fast optimization

2021-10-21 Thread Mosquito
New submission from Mosquito : I does a small experiment, and found out that if you generate UUID4 with int instead of sequence of bytes, then the generation of UUID4 occurs up to three times faster. .. code-block: python import random import uuid print("uuid.