Author: martin fierz
Date: 13:35:13 09/28/04
Go up one level in this thread
On September 28, 2004 at 13:44:08, Pallav Nawani wrote: >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 i can't quite follow - passing "by reference" is the same as passing a pointer! so yes, it should be same fast because it *is* the same :-) 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.