gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] persistent reading cache inconsistency patch


From: Gunnar Farneback
Subject: Re: [gnugo-devel] persistent reading cache inconsistency patch
Date: Tue, 01 Oct 2002 22:06:26 +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:
> I renamed attack() and find_defense(), and added a parameter to control
> whether they check the persistent cache before doing reading.  attack()
> and find_defense() as before now just call the new functions.  When
> attack_and_defend finds an inconsistency, it tries calling attack() and
> find_defense() without caching to fix it.  This of course slows down
> attack() and find_defense by a small amount, but since those aren't the
> recursive functions, I don't think this is a big deal.

I don't like this patch. A nicer way to solve the problem would be to
add a method to zap a particular entry in the persistent cache, call
this when an inconsistency has been detected, and then redo the
reading.

/Gunnar




reply via email to

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