← Back to context Comment by thomasmg 3 hours ago You could use "local.tee". It is kind of is "store" + "duplicate". 2 comments thomasmg Reply asibahi 3 hours ago `local.tee` doesn't duplicate. it just doesn't remove the value from the stack. (so it is "just" `local.set` followed by `local.get`) thomasmg 2 hours ago Sure. But it does save you one instruction: "tee", "get" instead of "set", "get", "get".
asibahi 3 hours ago `local.tee` doesn't duplicate. it just doesn't remove the value from the stack. (so it is "just" `local.set` followed by `local.get`) thomasmg 2 hours ago Sure. But it does save you one instruction: "tee", "get" instead of "set", "get", "get".
thomasmg 2 hours ago Sure. But it does save you one instruction: "tee", "get" instead of "set", "get", "get".
`local.tee` doesn't duplicate. it just doesn't remove the value from the stack. (so it is "just" `local.set` followed by `local.get`)
Sure. But it does save you one instruction: "tee", "get" instead of "set", "get", "get".