Daniel Lemire's blog

, 1 min read

Interfaces are not free in Go

One thought on “Interfaces are not free in Go”

  1. Serge Gotsuliak says:

    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.