On Sun, Feb 09, 2025 at 02:13:13PM -0800, Lindsay Lawrence wrote:
> It is interesting that I don't see much performance difference between tco
> and recur in most cases.

The difference is better visible if you avoid as much additional
processing as possible, and boil it down to the essential 'recur' and
'tco' calls:

: (let N 999999 (bench (recur (N) (or (=0 N) (recurse (dec N))))))
0.067 sec
-> 0

: (let N 999999 (bench (tco (N) (or (=0 N) (tc (dec N))))))
0.038 sec
-> 0

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to