[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnugo-devel] do_play_move speedup

From: Gunnar Farneback
Subject: Re: [gnugo-devel] do_play_move speedup
Date: Mon, 23 Sep 2002 20:24:21 +0200
User-agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode)

Evan wrote:
> This patch speeds up do_play_move by about 15% on my machine.  Inlining
> the function cause ~5% speedup, and the rest is from taking more care with
> conditionals and doing some precomputation.  Anyway, this is the result of
> my initial experiments with the profiler.  Hope it helps.

Except that we can't use the inlining the patch looks good. I'll add
it later tonight or tomorrow.

There has been some recent discussion on the list about inline, but it
wasn't very conclusive. I think the major issues are:

* Inline is a new feature in c99 and we are committed to c89.
* Pre-c99 compilers often have an inline extension, but not
  necessarily compatible with the c99 inline.
* There are some limits to what can be inlined.

A precondition for using inline at all is that we can determine
whether it's supported through the configure mechanism. There's some
research left to do in this area.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]