4 ms·
I wish people would realize using pointers in go doesn't automatically mean better performance. You should really stick to using values and only use pointers
by 0xFEE1DEAD 6y ago
I wish people would realize using pointers in go doesn't automatically mean better performance.
You should really stick to using values and only use pointers if it's necessary/makes for better code/increases performance.
Using pointers makes escape analysis harder and results
in more pressure on the gc which can effects performance more than usage of pointers saves.