4 ms·
this is too reductive. Usually stack space is faster because you will have fewer cache misses. future languages will be able to suss this out at compile-time:
by dnautics 5y ago
this is too reductive. Usually stack space is faster because you will have fewer cache misses.
future languages will be able to suss this out at compile-time: https://github.com/ziglang/zig/blob/2ac769eab9b7dba4cd38e5de01dfa6400f7ebd5b/lib/std/Thread.zig#L183-L184 https://github.com/ziglang/zig/blob/2ac769eab9b7dba4cd38e5de...
- sys_64738 5y agoIf speed issues then it sounds like this is critical code path that is sensitive to time. You'd be looking for alternative data structures at that point so this point would be moot.