4 ms·
This may be true in general, but the CLR uses bytecode and a JIT compiler, so that point may be a lot less relevant to it. In addition, devirtualization is appa
by hyperpape 10y ago
This may be true in general, but the CLR uses bytecode and a JIT compiler, so that point may be a lot less relevant to it. In addition, devirtualization is apparently valuable enough that they're going to add it to the CLR, per the article.
- MichaelGG 10y agoJava compiles to bytecode and most implementations JIT, just like .NET. JVMs are more advanced than the CLR at optimization.
- hyperpape 10y agoYes, my point is that once you're comparing two environments that use bytecode and a JIT, you can't necessarily cite the cost of startup time and the cost of JIT compilation as a reason to avoid possibly-virtual calls.