Forum OpenACS Development: Response to How about Apache 2.0?

Posted by Ola Hansson on

Recently, I timed a complex and big procedure running on 8.x, RH 6.2, AOLserver 3.2ad12, K6 3 450MHz and was baffled by the incredibly high performance it yielded.

I'm working on building a backgammon service, so the proc I timed is one that tests if the move from a player is valid or not.

set elapsed_time [time "bg_valid_move_p some_arg" 10000000]

This proc calls a recursive proc that in my test case called itself 290 times checking the move against all possible moves (by building an array), and in turn, the recursive proc calls four or five helper procs on each iteration.

I was amazed that it took no more than 8 seconds to run all this TEN MILLION times...