Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce init time allocation when declaring types used for reflect (pe…
…lletier#821) In declaration of types used for reflect, use reflect.TypeOf((*T)).Elem() instead of reflect.TypeOf(T{}) to avoid init-time allocations. See related stdlib issue: golang/go#55973
- Loading branch information