Hacker News new | ask | show | jobs
by maaaats 2426 days ago
> * It is fast. In release builds you can even try to replace the interfaces with the actual classes implementing it for a straight method call.*

Isn't the interface mainly for the compiler, and in runtime it's just a straight method call anyways?

1 comments

Depends on the language/compiler/platform. In C# there's a minuscule difference [1].

[1] https://stackoverflow.com/q/7225205/998987