guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scm_i_fraction_reduce thread safety


From: Bill Schottstaedt
Subject: Re: scm_i_fraction_reduce thread safety
Date: Fri, 12 Dec 2003 04:11:02 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

> I think that one way to avoid arbitrarily-bad behavior is to reduce only
> if the numerator or denominator is "sufficiently large" (I think this is
> at most a constant factor worse than always reducing).  For instance, we
> could reduce fractions only if the numerator or denominator is a bignum,
> in hopes that we will get back to fixnum-sized numbers.

That strikes me as a good idea -- I think it would also
fit into the current code pretty easily.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]