Re: A small stress test

> It looks to me more an XSLT stress test, isn'it ?

Each xslt call just reduces the lowest level <a>s.  The recursion is
done by the recursive call to the pipeline in the <when> branch of the
<choose>.

In my implementation, every step is a separate unix process.  Each
level of recursion involves the pipeline itself, and the choose (which
runs the chosen branch in the same process).  So there are two
processes per level of recursion.  Ackermann's has an amazing depth of
recursion for even small arguments.

A fixed-point-finding program like this would benefit enormously from
tail-recursion optimisation, but I don't think it's a common case.

-- Richard

Received on Friday, 30 November 2007 23:03:31 UTC