Øystein Johansen (OJOHANS) wrote:
> Hi all!
>  
> There's a bug in makebearoff when building one sided databases without
> gammon distributions.

> ERROR:makebearoff.c:483:BearOff: assertion failed: (iGammonBest >= 0)
>  
> I think it's just a matter of removing the assert() or set iGammonBest
> when building w/o gammon distributions.

I've committed a patch which removes the assert. I've also reduced the
size of each index entry for compressed database w/o gammon
distributions. This means that if someone is using a gammonless onesided
bearoff database (which is not very likely), the database evaluations
will be broken unless they build a new.

For discussion:
For bearoff databases with gammon distributions, the db stores gammon
distributions for _all_ positions in the db. Even those positions where
a gammon is already saved. It uses only 2 bytes for such positions, but
I'm estimating that there is about > 20000 positions where there is no
gammon involved. Making a scheme to check for possible gammon and only
storing those distributions sounds trivial, but is it worth the effort?
If I commit such change, it will break compatibility with existing
bearoff databases, but the memory footprint will be 40-50Kb less. Is it
worth it?

-Øystein


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Bug-gnubg mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Reply via email to