]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-131196: Improve perfomance of `UUID.hex` and `UUID.__str__` by ~10% (#131197)
authorGrigory Bukovsky <32143244+booqoffsky@users.noreply.github.com>
Thu, 13 Mar 2025 22:57:38 +0000 (01:57 +0300)
committerGitHub <noreply@github.com>
Thu, 13 Mar 2025 22:57:38 +0000 (01:57 +0300)
commit1121c80fdad1fc1a175f4691f33272cf28a66e83
tree7c4db6e8f582c31cdbd34278d000dfd9939ebb3c
parentd7d22899e2fdfdc707f98d7297d9406de91b7e0d
gh-131196: Improve perfomance of `UUID.hex` and `UUID.__str__` by ~10% (#131197)

Results before and after the fix:

```
hex
before: 0.021755493999989994
after:  0.01465080400066654

str
before: 0.06381790500017814
after:  0.05134949700004654
```

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/uuid.py
Misc/NEWS.d/next/Library/2025-03-13-19-53-57.gh-issue-131196.3sBFv2.rst [new file with mode: 0644]