3 ms·
We’re not at all disagreeing. Calling vs inlining trades higher peak stack usage for (ideally) lower average stack usage. Long running function calling short l
by Spivak 5y ago
We’re not at all disagreeing. Calling vs inlining trades higher peak stack usage for (ideally) lower average stack usage.
Long running function calling short lived but high memory use function is a bad candidate for inlining because of that.