diff options
author | Chris Eibl <138194463+chris-eibl@users.noreply.github.com> | 2025-03-13 11:06:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-13 11:06:56 (GMT) |
commit | 119bcfad9cac9ac8fa5fa6c0f3ee3ccfca778fe1 (patch) | |
tree | d25bb2858047ec253ad6f71b67de236bdaec9a90 /Lib/difflib.py | |
parent | a005835f699b5ba44beb8c856db1f62454522e1e (diff) | |
download | cpython-119bcfad9cac9ac8fa5fa6c0f3ee3ccfca778fe1.zip cpython-119bcfad9cac9ac8fa5fa6c0f3ee3ccfca778fe1.tar.gz cpython-119bcfad9cac9ac8fa5fa6c0f3ee3ccfca778fe1.tar.bz2 |
gh-129149: Add fast path for medium-sized integers in `PyLong_FromSsize_t()` (#129301)
The implementation of `PyLong_FromLong()`, `PyLong_FromLongLong()` and `PyLong_FromSsize_t()`
are now handled by a common macro `PYLONG_FROM_INT` which contains fast paths depending on the
size of the integer to convert. Consequently, `PyLong_FromSsize_t()` for medium-sized integers is faster
by roughly 25%.
---------
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Diffstat (limited to 'Lib/difflib.py')
0 files changed, 0 insertions, 0 deletions