Author mark.dickinson
Recipients facundobatista, gvanrossum, jyasskin, mark.dickinson, ncoghlan, rhettinger
Date 2008-02-18.22:15:41
SpamBayes Score 0.161693
Marked as misclassified No
Message-id <1203372943.51.0.326782173923.issue1682@psf.upfronthosting.co.za>
In-reply-to
Content
Two things:

(1) Speedup.  I haven't been helping much here;  apologies.  Christian 
suggested that a C implementation of gcd might help.  Is this true, or 
are we not yet at the stage where the gcd calls are significant?  There 
are some basic tricks that can speed up the usual Euclidean algorithm by 
a constant factor, and I'll try to implement them if that's of interest 
(unless Christian beats me to it). There also some serious super-fast 
recursive gcd algorithms, with running time O(n**(1+epsilon)) for a pair 
of n-bit integers, but those are complicated and probably best left to 
GMP.

(2) PEP 3101:  Should Fraction get a __format__ method?  I'm looking at 
implementing Decimal.__format__, and I think there's quite likely to be 
a fair amount of common code (e.g. for parsing the format specifier) 
between Decimal.__format__ and Fraction.__format__, so it would probably 
make sense for me to do both of these at once.
History
Date User Action Args
2008-02-18 22:15:43mark.dickinsonsetspambayes_score: 0.161693 -> 0.161693
recipients: + mark.dickinson, gvanrossum, rhettinger, facundobatista, ncoghlan, jyasskin
2008-02-18 22:15:43mark.dickinsonsetspambayes_score: 0.161693 -> 0.161693
messageid: <1203372943.51.0.326782173923.issue1682@psf.upfronthosting.co.za>
2008-02-18 22:15:42mark.dickinsonlinkissue1682 messages
2008-02-18 22:15:41mark.dickinsoncreate