Hi, its me again. I need some time to prepare what I doing. I'm using gorp package for matching struct field and db returned column. After doing pprof I found that a function is particular slow because to many reflect.Type.FieldByName called inside a reflect.Type.FieldByNameFunc So this is what I change for returned https://github.com/go-gorp/gorp/pull/347 Put I think I can avoid using FieldByNameFunc by using NumField() and recursive for anonymous field for comparing but I not really sure if it will be the better trade.
On Thursday, March 16, 2017 at 3:30:14 PM UTC+7, Ingo Oeser wrote: > > What checks are you doing on struct field names and tags? That will be > crucial to answering your question. -- 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. For more options, visit https://groups.google.com/d/optout.