Profiling suggests that reslicing to remove the first element of a slice is doing alot of allocation; for instance in mycode() below. This is surprising to me.... How could this be? is there anything I can do about it?
e.g. type A struct{ B string } func mycode(slice []A) { slice = slice[1:] } -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a14a4f3e-f7dc-48d2-a7f6-72c0ca95d338%40googlegroups.com.