Computer Chess Club Archives


Search

Terms

Messages

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

Author: Pallav Nawani

Date: 10:44:08 09/28/04

Go up one level in this thread


On September 28, 2004 at 08:42:36, martin fierz 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.
>
>finally, the speed of your move generator will be quite irrelevant to the
>performance of your engine.
>
>cheers
>  martin

Hi,

I use references instead. Is there a performance hit to passing a structure by
reference? It should be as fast as passing pointers. right?

Pallav



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.