Author scoder
Recipients brg@gladman.plus.com, gladman, mark.dickinson, mrabarnett, scoder, steven.daprano, terry.reedy, vstinner, wolma
Date 2014-10-07.20:24:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412713494.79.0.492825409273.issue22477@psf.upfronthosting.co.za>
In-reply-to
Content
> it might be worth at least considering how a 'one or more parameter' gcd compares on performance grounds with a two parameter one.

There shouldn't be a difference in practice. The bulk of the work is in the algorithm that finds the GCD of two numbers, and finding the GCD of multiple numbers is simply

    functools.reduce(math.gcd, seq_of_numbers)

Since the most common use case is finding the GCD of two numbers, I don't see a reason to burden the implementation with a special case here.
History
Date User Action Args
2014-10-07 20:24:54scodersetrecipients: + scoder, terry.reedy, mark.dickinson, vstinner, mrabarnett, steven.daprano, wolma, gladman, brg@gladman.plus.com
2014-10-07 20:24:54scodersetmessageid: <1412713494.79.0.492825409273.issue22477@psf.upfronthosting.co.za>
2014-10-07 20:24:54scoderlinkissue22477 messages
2014-10-07 20:24:54scodercreate