The cost of a board pointer

Discussion of chess software programming and technical issues.

Moderator: Ras

User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

The cost of a board pointer

Post by Zach Wegner »

I'm converting ZCT to threads, and I've finished everything but the SMP code. Just to lay the argument about there being any sort of speed difference to rest, here is the speed difference between them:

Without board pointer:

Code: Select all

Total nodes=30627886
Total time=35.052
Nodes per second=873784
With board pointer:

Code: Select all

Total nodes=30627886
Total time=35.376
Nodes per second=865781
...So, just under 1 percent, i.e. nothing. Anyone can verify this with my sources if they want.
bob
Posts: 20943
Joined: Mon Feb 27, 2006 7:30 pm
Location: Birmingham, AL

Re: The cost of a board pointer

Post by bob »

Zach Wegner wrote:I'm converting ZCT to threads, and I've finished everything but the SMP code. Just to lay the argument about there being any sort of speed difference to rest, here is the speed difference between them:

Without board pointer:

Code: Select all

Total nodes=30627886
Total time=35.052
Nodes per second=873784
With board pointer:

Code: Select all

Total nodes=30627886
Total time=35.376
Nodes per second=865781
...So, just under 1 percent, i.e. nothing. Anyone can verify this with my sources if they want.
I found the same thing when I made the change for SMP years ago. But some will still argue the point even though you actually _did_ it and compared the difference in terms of speed.