On Thu, 7 Jul 2022 at 08:06, David Gray <[email protected]> wrote:
>
>
> Something a little more prosaic after the last set of messages on 
> mit-scheme-devel.
> Just to get a feel for the speed and stability of a new system I run a long 
> Fibonacci recursive functioning and I must have mixed up an old version which 
> was much faster, (fib 42) -> 3s instead of 25s, and the only difference seems 
> to be the following if statement.
>
> (if (<= n 2)
> 1
> (fib…….
>
> (if (or (= n 1)
>           (= n 2)
>      1
> (fib………
>
> Is the underlying code so different?

Assembler, that would be 5 operations vs 2?

HTH


>
>
>



-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.

Reply via email to