Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: .Net engine

Author: Thomas McBurney

Date: 05:47:37 02/13/04

Go up one level in this thread


>
>>Generally the data that is the same size as the cpu registers is the most
>>efficient. So on a 32-bit machine, 32-bit variables should be the fastest to
>>work with. However, that is not the only factor. You have to take into account
>>things like the cache. Usually working with 8-bit data on a 32-bit cpu might be
>>a little slower than working with 32-bit data, but if using 8-bit data means
>>that all of your data and code fits into the cache, then using 8-bit data can be
>>significantly faster.
>
>Well, here on my laptop i'm working with a celeron 2.4 gHz cpu, which i'm pretty
>sure doesn't have a cache. So I may as well use integers, i suppose. My desktop
>has a full P4 though, so I may have to investigate some way to definet it
>differently depending on the computer i'm on.

When you specify integers make sure they are 32 bit integers.  Eg. DIM I as
long, (not DIM I as integer)

The chess engine Minimax increased NPS by 20% when I converted all 16 bit
integers to 32 bit integers. Note: this was done using PowerBASIC not VB.

I have a question, does VB.NET support 64 bit integers (Quad integer - Eg. Dim I
as QUAD)?  A bit of a joke if it doesn't.

Cheers,
Tom.






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.