Message105660
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. |
|
Date |
User |
Action |
Args |
2010-05-13 21:28:08 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, belopolsky, draghuram, stutzbach |
2010-05-13 21:28:08 | mark.dickinson | set | messageid: <1273786088.25.0.951000165501.issue8692@psf.upfronthosting.co.za> |
2010-05-13 21:28:07 | mark.dickinson | link | issue8692 messages |
2010-05-13 21:28:06 | mark.dickinson | create | |
|