[Top][All Lists]

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

Re: [gnugo-devel] DFA_MAX_MATCHED too small?

From: Tanguy Urvoy
Subject: Re: [gnugo-devel] DFA_MAX_MATCHED too small?
Date: Mon, 14 Jan 2002 15:11:07 +0100


DFA_MAX_MATCHED should be alway greater than patno*8
to avoid a (very unprobable but unchecked)
array out of bound if all patterns matches at one point.

The optimal value is number_of_patterns * 8 + 1

So here 8*412+1 will make it, but
with 8*500 you will stay in peace for long time.
It is still possible to reduce this number for releases.

Tanguy Urvoy

reply via email to

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