diff options
| author | Tim Peters <tim.peters@gmail.com> | 2004-08-29 22:16:50 +0000 |
|---|---|---|
| committer | Tim Peters <tim.peters@gmail.com> | 2004-08-29 22:16:50 +0000 |
| commit | c3df4ca9daebd5bf112c2738360ca7ff11bd9fb1 (patch) | |
| tree | 10f563db043b6df0f03baa1795e93dcaec1bb981 /Lib/difflib.py | |
| parent | 2bf18166fa456e5a56b6a6e7e026dcfe9047be2b (diff) | |
| download | cpython-c3df4ca9daebd5bf112c2738360ca7ff11bd9fb1.tar.gz | |
SF patch 936813: fast modular exponentiation
This checkin is adapted from part 1 (of 3) of Trevor Perrin's patch set.
x_mul()
- sped a little by optimizing the C
- sped a lot (~2X) if it's doing a square; note that long_pow() squares
often
k_mul()
- more cache-friendly now if it's doing a square
KARATSUBA_CUTOFF
- boosted; gradeschool mult is quicker now, and it may have been too low
for many platforms anyway
KARATSUBA_SQUARE_CUTOFF
- new
- since x_mul is a lot faster at squaring now, the point at which
Karatsuba pays for squaring is much higher than for general mult
Diffstat (limited to 'Lib/difflib.py')
0 files changed, 0 insertions, 0 deletions
