Go logoGo/
CRT-P0003

Function params involve heavy amount of copyingCRT-P0003

Major severityMajor
Performance categoryPerformance

When a param big in size (more than 80 bytes) is passed to another function, it is better to pass a pointer to the value around, rather than the value itself.

Bad practice

func f(x [1024]int) {}
func f(x *[1024]int) {}