Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Problem searching too deep!

Author: Sune Fischer

Date: 06:46:25 05/28/02

Go up one level in this thread


On May 28, 2002 at 09:22:46, José Carlos wrote:

>On May 28, 2002 at 09:03:45, Sune Fischer wrote:
>
>>On May 28, 2002 at 08:42:52, José Carlos wrote:
>>>
>>>>These dayes 150 kB is nothing, I feel I can afford it better than an "if" that's
>>>>wasted 99.99% of the time.
>>>
>>>  Just out of curiosity, how much slower is your program with the "wasted if"?
>>>Did you measure it?
>>
>>Actually no, I didn't.
>>But why put it in when its not needed?
>>It's at least 100.000 redundant if's per second, isn't it?
>>Pretty expensive safety check IMO.
>>
>>-S.
>>
>>>  José C.
>
>  My last advice, I won't insist :), I swear: Test, don't guess.

Heh.
I don't test every line I change, usually changes are too small to detect, I
rely largely on logic, intuition and a few quick calculations:

Speed is around 400 knps, on a 1 GHz Athlon and that's about 2500 clocks per
node, if one "if" is 1 clock then that's 1/2500 speedup.
Hard to measure, but its there.

-S.

>  José C.



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.