On Thu 04 May 2006 (11:57 +0200), Øystein O. Johansen wrote: > Has anyone lately runned gnubg through a profiler? > I would love to see the output. > > A slight guess is that Evaluate and CalcInputs are about > equally loaded. I think there's more to improve in CalcInputs > than in Evaluate, so the question is: Whats the slow part of > CalcInputs?
I haven't run a profiler in a while, but as I recall, CalculateHalfInputs was a big contributor. I had an idea to replace the iterative loops over the board arrays with operations using shifts and masks (probably by making bit maps of blots, blocked points, etc.) and tables of dice rolls vs moves. However, I haven't been able to get enough unbroken time to do any serious work other than simple patches in a long time - the joys of young children, moving houses and changes in my work. -- Jim Segrave [EMAIL PROTECTED] _______________________________________________ Bug-gnubg mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gnubg
