Author: Pat King
Date: 07:57:30 09/16/03
Go up one level in this thread
On September 15, 2003 at 19:28:39, Mathieu Pagé wrote: >In fact I have not yet implementing dynamic allocation. > >I'm pretty sure it's about too much constructor executing. > >I'd like to know if someone had ever experiments which overhead (%) should I >expect when porting non-OO chess engine to OO ? > >Thanks for your help, i'will give a try to your idea when implementing dynamic >allocation. > >Mathieu Pagé I highly recommend Scott Meyers' "Effective C++", especially the chapter on constructors, destructors, and assignment. As Bo did, I eventually came up with a vector based, preallocated move list, and Scott helped me do it right. By the way, I DO use abstract piece classes and a lot of the fancy C++ stuff. My engine is fairly slow, but in my mind it was worth the price because of the ease of testing and debugging individual classes. Since it sounds like you already had a working C program, this route may not be for you, but it is possible, and not neccessarily fatally slow. Pat King
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.