On Wed, Feb 13, 2013 at 3:48 PM, bearophile <bearophileHUGS@lycos.com> wrote:
Arlen:


I ran some benchmarks, and I don't see how the rosetta version is more optimized:

My message says "See this implementation (that doesn't use an optimized GCD):". I have never said that code is more optimized.

What I have said is that your version probably should simplify its arguments inside the constructor, possibly with an optimized GCD.

Bye,
bearophile

Sorry, I misread what you said.

Maybe you mean something different by "simplify its arguments", but my version _does_ simplify its arguments inside the constructor.

As for "an optimized GCD", are you talking about binary GCD? 

Arlen