Skip to content

Commit

Permalink
opt: reduce DefaultMaxInlineDepth=2
Browse files Browse the repository at this point in the history
  • Loading branch information
AsterDY committed Sep 9, 2024
1 parent 9e5bbc5 commit f58bf5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions option/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ type CompileOptions struct {
}

var (
// Default value(3) means the compiler only inline 3 layers of nested struct.
// Default value(2) means the compiler only inline 2 layers of nested struct.
// when the depth exceeds, the compiler will recurse
// and compile subsequent structs when they are decoded
DefaultMaxInlineDepth = 3
DefaultMaxInlineDepth = 2

// Default value(1) means `Pretouch()` will be recursively executed once,
// if any nested struct is left (depth exceeds MaxInlineDepth)
Expand Down

0 comments on commit f58bf5b

Please sign in to comment.