@[email protected] to Rust [email protected]English • edit-21 day agoWhich is faster?message-square10fedilinkarrow-up19arrow-down11file-text
arrow-up18arrow-down1message-squareWhich is faster?@[email protected] to Rust [email protected]English • edit-21 day agomessage-square10fedilinkfile-text
minus-square@GiooschilinkEnglish2•edit-29 hours ago let statements only reserves space on the stack It is not guaranteed to do that. It could also use a register or be optimized out completly (like in the example you posted in the other comment). The stack pointer is also not changed for each local variable, but instead for each function call, so it wouldn’t make a difference anyway.
It is not guaranteed to do that. It could also use a register or be optimized out completly (like in the example you posted in the other comment).
The stack pointer is also not changed for each local variable, but instead for each function call, so it wouldn’t make a difference anyway.