Go

Go

Made by DeepSource

Function params involve heavy amount of copying CRT-P0003

Performance
Major

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) {}

Recommended

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