If at compile time, I have exactly one struct type that implements an interface, can the compiler optimize away or maybe shortcut the Virtual Function Table so interface calls on objects of that struct type are made directly? If it can, does it do that?
I’m not asking if it should. Primarily, I’m trying to learn about the inner workings of interfaces… and the compiler a bit.