If you have a real world application [not a microbenchmark] that suffers from the fact that Dart VM does not implement OSR please add it to https://code.google.com/p/dart/issues/detail?id=6787
If you have a real world application [not a microbenchmark] that suffers from the fact that Dart VM does not implement OSR please add it to https://code.google.com/p/dart/issues/detail?id=6787
I can't disagree with that, because that statement is absolutely true. The only difference between those two kinds of programs is the intention of the programmer. In both cases you have at least one heavy function which is called just once. As far as the VM is concerned, there is no difference whatsoever.
But it's also true that there are sometimes long running functions which are aren't frequently called. In Java, JavaScript, or C# you won't have to worry about that kind of thing. You won't have to break it down in smaller pieces just for the sake of spreading the load across more function calls.