Author: Bruce Moreland
Date: 14:37:13 06/06/01
Go up one level in this thread
On June 05, 2001 at 11:14:29, Robert Hyatt wrote: >> >>Now see what i get in beowulf. Instead of that in 2001 dudes program >>better they program things out FOR EVERY PIECE. >> >>Even blackpawns and whitepawns are written out. >> >>Man such a student i would directly ship back. >> >> "Please make the code more general student, if you multiply a 2048 x 2048 >> array you don't write out every multiplication either!". >> >>See here below the horror which i found in moves.c from beowulf project. >> >>How do you plan to let people learn from this code? >> >>They must learn to "write everything out"?? >> >>Please use a few for loops, even in bitboards you can do that, >>or have you forgotten how loops work? > >Depends on the purpose. "unrolling" is a well-known way to speed up code. >Compact does not always equal fast. Unrolling also eliminates some tests and >branches, which is also good. Big can also mean slow, and if the code is going to be maintained, a series of similar code chunks that must be modified at the same time is asking for bugs. Whatever that code is, if it's not already beating grandmasters it's premature optimization. bruce
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.