4 ms·
Stack allocation is kind of like inlining, the more you use it the faster your program gets.
by fleitz 13y ago
Stack allocation is kind of like inlining, the more you use it the faster your program gets.
- MichaelGG 13y agoI know this may have been tongue-in-cheek, but on the CLR, inlining functions makes a massive difference. That is, using F#'s forced inlining capabilities to generate massive functions (many KB of IL) resulted in much better runtimes than having even a couple of small functions called (which "should" be inlined by the CLR; MS tells us we should just rely on the JIT for these cases).