Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Question about Hash-tables

Author: David Rasmussen

Date: 01:12:53 12/11/02

Go up one level in this thread


On December 10, 2002 at 20:03:46, Jeremiah Penery wrote:

>On December 10, 2002 at 19:55:20, Andrew Dados wrote:
>
>>In old days of 186 processors operation modulo was costly comparing to logical
>>AND. Now this is totally outdated (integer division takes one clock), so
>
>What kind of processor do you have that does division in one clock?  AFAIK, P4
>(or is it Athlon?) takes _41_ cycles to divide.

I've tested on both Athlons and P4s and UltraSPARCS and others, and while the
mod operator might be slower (maybe much slower) on all of these, than the and
operator, it didn't affect the speed measurably. Don't change the design for a
performance gain you can' measure.

/David



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.