• Yury Selivanov's avatar
    Issues #26289 and #26315: Optimize floor/modulo div for single-digit longs · e0b23095
    Yury Selivanov yazdı
    Microbenchmarks show 2-2.5x improvement.  Built-in 'divmod' function
    is now also ~10% faster.
    
    -m timeit -s "x=22331" "x//2;x//-3;x//4;x//5;x//-6;x//7;x//8;x//-99;x//100;"
    with patch: 0.321          without patch: 0.633
    
    -m timeit -s "x=22331" "x%2;x%3;x%-4;x%5;x%6;x%-7;x%8;x%99;x%-100;"
    with patch: 0.224          without patch: 0.66
    
    Big thanks to Serhiy Storchaka, Mark Dickinson and Victor Stinner for
    thorow code reviews and algorithms improvements.
    e0b23095
Adı
Son kayıt (commit)
Son güncelleme
..
ACKS Loading commit data...
HISTORY Loading commit data...
NEWS Loading commit data...
Porting Loading commit data...
README Loading commit data...
README.AIX Loading commit data...
README.coverity Loading commit data...
README.valgrind Loading commit data...
SpecialBuilds.txt Loading commit data...
coverity_model.c Loading commit data...
gdbinit Loading commit data...
indent.pro Loading commit data...
python-config.in Loading commit data...
python-config.sh.in Loading commit data...
python-wing3.wpr Loading commit data...
python-wing4.wpr Loading commit data...
python-wing5.wpr Loading commit data...
python.man Loading commit data...
python.pc.in Loading commit data...
svnmap.txt Loading commit data...
valgrind-python.supp Loading commit data...
vgrindefs Loading commit data...