Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Optimizing C code for speed

Author: David Rasmussen

Date: 14:06:39 01/02/03

Go up one level in this thread


On January 02, 2003 at 14:53:17, Dann Corbit wrote:

>>
>>So Duff's Device isn't used in Ferret?! :)
>
>Actually, it is almost certain that Duff's device is used in Ferret.  A compiler
>that allows loop unrolling is (in effect) using Duff's device.
>

Mmm. I would disagree with that logic. Just because to pieces of code result in
the same assembler output by some compiler, doesn't mean that those two pieces
of code are equivalent, specifically, they are not of equal quality, in my
world.

>By the way, I am 100% on the same page as you and Bruce when it comes to
>"writing C code for clarity".
>
>Typically, 90% of the time is spent in 10% of the code.  So we profile to
>discover where a need exists and then work on only that hot spot.
>[snip]

I agree. But maybe that's because you agree with me :)

/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.