mirror of
https://github.com/json-iterator/go.git
synced 2025-04-26 11:42:56 +02:00
slice embedded in struct will not be optimized by interface{}
This commit is contained in:
parent
ec7b40d104
commit
a6673c983a
@ -282,8 +282,6 @@ func createStructDescriptor(cfg *frozenConfig, typ reflect.Type, bindings []*Bin
|
||||
}
|
||||
fallthrough
|
||||
case reflect.Map:
|
||||
fallthrough
|
||||
case reflect.Slice:
|
||||
onePtrOptimization = true
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user