mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-31 15:19:45 +07:00
optimize: lower the requirement of bootstrap memory
This commit is contained in:
@ -97,10 +97,24 @@ func (i OutboundIndex) IsReserved() bool {
|
||||
return !strings.HasPrefix(i.String(), "<index: ")
|
||||
}
|
||||
|
||||
const (
|
||||
MaxMatchSetLen = 32 * 3
|
||||
var (
|
||||
MaxMatchSetLen_ = ""
|
||||
MaxMatchSetLen = 32 * 2
|
||||
)
|
||||
|
||||
func init() {
|
||||
if MaxMatchSetLen_ != "" {
|
||||
i, err := strconv.Atoi(MaxMatchSetLen_)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
MaxMatchSetLen = i
|
||||
}
|
||||
if MaxMatchSetLen%32 != 0 {
|
||||
panic("MaxMatchSetLen should be a multiple of 32: " + strconv.Itoa(MaxMatchSetLen))
|
||||
}
|
||||
}
|
||||
|
||||
type L4ProtoType uint8
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user