Interface is just a struct with one field representing the type and second representing value. So to access the real value in run-time there are at least another extra level of indirection. That doesn’t play well with modern CPUs where the memory access is the real bottleneck.
Interface is just a struct with one field representing the type and second representing value. So to access the real value in run-time there are at least another extra level of indirection. That doesn’t play well with modern CPUs where the memory access is the real bottleneck.