4 ms·
Here's a little more info on how and why Go does it: http://research.swtch.com/interfaces http://research.swtch.com/interfaces
by hencq 11y ago
Here's a little more info on how and why Go does it: http://research.swtch.com/interfaces http://research.swtch.com/interfaces
- pcwalton 11y agoInteresting, thanks. The relevant part seems to be here: > Go's dynamic type conversions mean that it isn't reasonable for the compiler or linker to precompute all possible itables: there are too many (interface type, concrete type) pairs, and most won't be needed.