1
0
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:
Tao Wen 2017-06-29 18:52:03 +08:00
parent ec7b40d104
commit a6673c983a

View File

@ -282,8 +282,6 @@ func createStructDescriptor(cfg *frozenConfig, typ reflect.Type, bindings []*Bin
}
fallthrough
case reflect.Map:
fallthrough
case reflect.Slice:
onePtrOptimization = true
}
}