Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: huge speedup by using pointers instead of arrays

Author: Roman Hartmann

Date: 06:10:54 09/28/04

Go up one level in this thread


On September 28, 2004 at 08:42:36, martin fierz wrote:

>On September 28, 2004 at 05:33:46, Roman Hartmann wrote:

>no surprises here :-)
>passing entire structures is a huge mistake, you should always pass pointers to
>structures. the larger the structure gets (and i assume a position structure is
>quite large!) the worse it gets.

I didn't know that the slowdown by passing structures is that bad. But at least
leaves coding bad in the first place room for improvements :)

>finally, the speed of your move generator will be quite irrelevant to the
>performance of your engine.

I'm well aware of that. Still it's nice to have the moves calculated rather
quickly as there is more time to do all the important evaluation stuff (I didn't
even touch that topic yet).

cheers
Roman

>cheers
>  martin



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.