3 ms·
The inlining feature is great, if for no other reason than shooting down stuck-in-the-past devs that say "yeah but all those function calls are so expensive".
by peeters 13y ago
The inlining feature is great, if for no other reason than shooting down stuck-in-the-past devs that say "yeah but all those function calls are so expensive".
- protomyth 13y agoSadly, some devs are stuck with stuck-in-the-past compilers and still have to deal with this crap. It reminds me a bit of new devs who end up on Sybase database project and expect that "modern optimizers" always pick the right indexes.
- pcwalton 13y agoIn my experience, at least for static languages, inline annotations are very useful in the hands of a skilled programmer; the compiler's inline heuristics are always static guesses at dynamic properties and as a result they fall down from time to time. (The JVM may be able to do better here though—it has the ability to inline functions at runtime via a recompile if they discover that they're being called a lot.)