commit | fc05e6bfce5d5dfc23859e6f7862c1e707a12e42 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Wed Jan 12 12:55:02 2022 -0600 |
committer | GitHub <noreply@github.com> | Wed Jan 12 12:55:02 2022 -0600 |
tree | 752b978b00117c5819083a8cb259744401afbb3a | |
parent | e2a9c8ef09cb7123d6b28852a323e6cc1f878b5b [diff] |
bpo-46020: Optimize long_pow for the common case (GH-30555) This cuts a bit of overhead by not initializing the table of small odd powers unless it's needed for a large exponent.