[Top][All Lists]

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

Re: [Bug-gnubg] What does the cache do?

From: Øystein Johansen
Subject: Re: [Bug-gnubg] What does the cache do?
Date: Sun, 29 Jun 2003 13:49:44 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

address@hidden wrote:

What does the cache setting do?

GNU Backgammon takes some of the memory and uses it as cache. When gnubg makes an evaluations and saves the results from the evaluation (All equities and probabilities) in the cache memory. Then starting a new evaluation it first checks the cache memory to see if this position is stored from a previous evaluation. If it is it just takes the equities and probabilities from the cache. Else it calculates the probabilities and equities from the neural nets.

Retriving evaluation results from cache memory is much faster than doing evaluations of the neural net!

The user can adjust the size of the cache memory. The size is given in number of enteries. Jørn, what's the size of a evaluation stored? 6 x sizeof(float)?

Jørn, should we reimplement the "Clear cache" button we did in Alborg in february? I think I've lost it, before it was commited to the CVS. And as you said: The "clear cache" function should also be called when changing METs. (Currently I have to set the cache size to 0, when I play around with different METs.)


reply via email to

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