3 ms·
Cool. Is this due to "final" and the fact that the compiler can figure out the target at compile time?
by topiolli 6y ago
Cool. Is this due to "final" and the fact that the compiler can figure out the target at compile time?
- MaulingMonkey 6y agoOne call site (the one that takes bar&) relies on the final to devirtualize. The other call sites merely rely on the compiler being able to determine the exact type involved at compile time to devirtualize.