You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-27 23:18:42 +02:00
slice embedded in struct will not be optimized by interface{}
This commit is contained in:
@ -282,8 +282,6 @@ func createStructDescriptor(cfg *frozenConfig, typ reflect.Type, bindings []*Bin
|
||||
}
|
||||
fallthrough
|
||||
case reflect.Map:
|
||||
fallthrough
|
||||
case reflect.Slice:
|
||||
onePtrOptimization = true
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user