gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] RE: Persistent cache


From: Heikki Levanto
Subject: Re: [gnugo-devel] RE: Persistent cache
Date: Wed, 6 Nov 2002 09:55:27 +0100
User-agent: Mutt/1.4i

On Tue, Nov 05, 2002 at 10:31:46PM +0100, Portela Fernand wrote:
> -Move 191 (black): GNU Go plays F8 (26.20) - Game move J18
> +Move 191 (black): GNU Go plays G6 (20.11) - Game move J18
>[...] 
> Opinions might differ here, and I'm sorry to insist, but I really don't
> like that.

I second that dislike.

It shouldn't be hard to add a (compile-time) option to check the cache
instead of using it. Something like

#ifndef CHECKCACHE
  if (in cache)
    return cached_value
  else
    compute value
    store in cache
    return value
#else 
  if (in cache)
    compute value
    assert(computed value == cached value)
    return value
  else
    compute value
    store in cache
    return value
#endif

This should catch most of caching effects quickly and effectively. We could
run this periodically, like we do reorientation tests. 

-H


-- 
Heikki Levanto  LSD - Levanto Software Development   <address@hidden>





reply via email to

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