Author: Tom Kerrigan
Date: 20:05:28 06/03/03
Go up one level in this thread
On June 03, 2003 at 17:20:25, Ryan B. wrote: >Code that is unused in a program never helps the performance. The MP code is >not used with a SP system. For example take a program you have written and add >some large unused functions. Now compile the program and see if it is somehow >faster. Logically your program should be a small bit slower due to the extra >code. Now think that some of the extra code in a chess program is probably an >in a loop that is used millions of times. This may only be a small difference >but every little bit matters. Actually, unused code CAN help performance. Considering caches, the only difference unused code will make is how cache friendly the "used code" is. It could help, or it could hurt. It probably won't do either to any significant degree. It's possible that Junior has extra code that does get run but doesn't do anything because there are no other threads that are running. When I compile my program for SMP, but with 1 thread, it runs 3-4% slower than when it isn't compiled for SMP. -Tom
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.