Author: Dann Corbit
Date: 12:48:17 04/12/04
Go up one level in this thread
This is definitely the wrong place to look for optimization. Let's suppose that we are searching at depth 20. Let's suppose further that we have ten parameters to our search. That's 40 bytes per push times 20 pushes = 800 bytes. Literally, we have wasted far less than a millisecond on a 20 ply search. Far, far more valuable to clarify the code and improve the algorithm. The first rule of optimization is: 1. Don't do it. The second rule of optimzation (for experts only) is: 2. Don't do it yet. Sounds like a joke, but it is absoltely true. And never, never, never optimize without a profile. Usually, 90% of the time goes in 10% of the code. If you waste your time working on the 90% that is not a bottleneck your program will not improve.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.