there's some overhead in checking to load the name and dict lookup the value. There's less overhead in LOAD_FAST and LOAD_DEREF but it's still slightly slower than simply DUP the top of stack. We still want to write the value to the relevant location.
For operations like
there's some overhead in checking to load the name and dict lookup the value. There's less overhead in LOAD_FAST and LOAD_DEREF but it's still slightly slower than simply DUP the top of stack. We still want to write the value to the relevant location.