[issue8692] Use divide-and-conquer for faster factorials
Mark Dickinson
report at bugs.python.org
Thu May 13 23:28:08 CEST 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
Does anyone feel like doing a speed comparison between Daniel's C patch and a version with a direct no-frills iterative version of factorial_part_product (i.e., just a simple 'for (i = n; i <= m; i += 2) { <multiply running product by i> }? I have a sneaking suspicion that the iterative version will be faster even for quite large values of n, but I'd be happy to be proven wrong.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8692>
_______________________________________
More information about the Python-bugs-list
mailing list