Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #53963 [Uid] Optimize UuidV4 generation (smnandre)
This PR was squashed before being merged into the 7.1 branch. Discussion ---------- [Uid] Optimize UuidV4 generation | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Fix # | License | MIT I tried to optimize as much as I could the [UuidV4 generation](https://github.com/symfony/symfony/blob/7.1/src/Symfony/Component/Uid/UuidV4.php). According to local tests, the code is now between `35%` and `40%` faster. (But to be fair... we are talking nanoseconds here 😅) Thanks `@nicolas`-grekas for the help in this ~~useless~~ fun quest 😃 -- --> Bench (& results): https://github.com/smnandre/uuid-bench Commits ------- 7b5c57b [Uid] Optimize UuidV4 generation
- Loading branch information