Computer Chess Club Archives


Search

Terms

Messages

Subject: Problem with Object Oriented Design (programming issue)

Author: Mathieu Pagé

Date: 09:54:21 09/15/03


Hi,
   As I said 2 or 3 weeks ago I have tried to redesign my chess engine in a
object oriented way (in C++). It is done, but ...

   I have some _really_ bad performaces. My code was used to do a perft(5) at a
speed of about 630 000 nps (on a old Celeron 800mhz). Now, the OO version do
about 4500 nps on the same computer and with the same compiler options.

   I have not still investigate so much, so maybe I will find that there is some
bad code causing this problem.

   I thought that a performances problem could happen while programming with
objects, but i'd never tought that it could be so much. Is it normal or
expectable ?

   And if you think you know what i am doing wrong, please give me a hint :)

Mathieu Pagé
pagemathieu at hotmail dot com




This page took 0.03 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.