Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

One fixup:

-     j = min(k // 2, FixedJ) 
+     j = FixedJ if k > FixedJ else k // 2 

With that fix, the number of 64-bit mod arithmetic calls drops to 3, 4, and 20 
for C(200,100), C(225,112), and C(250,125).  The compares to 115, 150, and 193 
calls in the current code.

----------
Added file: https://bugs.python.org/file50556/comb_pole.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37295>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to