elements in a []interface{} slice. The interface{} values may be either
pointer-to-huge-struct or huge-struct values. That is, it is really
[]MyBigStruct or []*MyBigStruct. For background, sometimes it is more
efficient to inline big structs in the slice to reduce GC burden.
How can I efficiently determine which element type is present in a
[]interface{} slice? Using reflection naively may cause the large struct
values to be rewritten on the stack multiple times, which I must avoid.
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.