4 ms·
Yes, I was assuming a case where you don't know exactly how much memory you know ahead of time. If you have predictable requirements, you can just use stack all
by rbehrends 9y ago
Yes, I was assuming a case where you don't know exactly how much memory you know ahead of time. If you have predictable requirements, you can just use stack allocations.
For example, note how the `ref 0` in the code does not actually incur overhead; the compiler does escape analysis and will stuff the counter in a register or stack location.