Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Solving the "constructor" problem in C++

Author: Dann Corbit

Date: 13:23:47 06/12/02

Go up one level in this thread


On June 12, 2002 at 16:13:52, Odd Gunnar Malin wrote:
[snip]
>It possible that all move lists should be in a global pool for speed (i have not
>tested this).

From my experience, the overhead of the (this) pointer is negligible (if any).
The loss of encapsulation far outweighs any sort of speed that might be gained.

Of course, some other system of compiler + architecture might be different.  But
I would not make global objects without a powerful reason in C++.



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.