3 ms·
Storing concrete values into interfaces often cause allocations, which has a larger impact on performance than inlining.
by tapirl 2y ago
Storing concrete values into interfaces often cause allocations, which has a larger impact on performance than inlining.
- nasretdinov 2y agoYeah I was really surprised by how much of a performance difference it made when calling variadic functions that support `args ...interface{}`. Literally every since call is going to be an allocation of multiple parameters when passing structs without a pointer