]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-91851: Micro optimizations for arithmetic between Fractions (#25518)
authorSergey B Kirpichev <skirpichev@gmail.com>
Sun, 8 Jan 2023 08:34:20 +0000 (11:34 +0300)
committerGitHub <noreply@github.com>
Sun, 8 Jan 2023 08:34:20 +0000 (00:34 -0800)
commit909982e82aa73fe5a75d5ab75fbaf84539a0c5e3
treea4c1736913b44c6ce021d80f58eb7c0389bc43e0
parent6d3bc4a795e7a60f665e41b2d4b6803f3844fc48
gh-91851: Micro optimizations for arithmetic between Fractions (#25518)

Adapted from
https://github.com/python/cpython/pull/24779/commits/046c84e8f9

This makes arithmetic between Fractions with small components
just as fast as before python/cpython#24779, at some expense of
mixed arithmetic (e.g. Fraction + int).
Lib/fractions.py
Misc/NEWS.d/next/Library/2022-04-23-08-12-14.gh-issue-91851.Jd47V6.rst [new file with mode: 0644]