From f58bf5b2c5feca597c1abaf7930b4ab9e7d5b83c Mon Sep 17 00:00:00 2001 From: "duanyi.aster" Date: Mon, 9 Sep 2024 11:19:21 +0800 Subject: [PATCH] opt: reduce DefaultMaxInlineDepth=2 --- option/option.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/option/option.go b/option/option.go index 4d9965260..24e3a1ef9 100644 --- a/option/option.go +++ b/option/option.go @@ -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)