commander@lemmings.world to Rust Programming@lemmy.mlEnglish · edit-21 month agoWhich is faster?message-squaremessage-square3fedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1message-squareWhich is faster?commander@lemmings.world to Rust Programming@lemmy.mlEnglish · edit-21 month agomessage-square3fedilinkfile-text
minus-squareasudox@lemmy.asudox.devlinkfedilinkarrow-up0arrow-down1·1 month agoThe second one is more expensive as you constantly are creating a new variable. In the first one you just constantly change the value of a variable.
The second one is more expensive as you constantly are creating a new variable. In the first one you just constantly change the value of a variable.