deque.py
deque.py copied to clipboard
Optimisations
- Functions re-defined I placed the definitions of the functions out of the loop so that it's doesn't get re-defined at each instruction.
- No more
ip+=1everywhere I've remove theip+=1and placed at the end of the loop so that's it's written once. To avoid theaddrerror, i've set it toaddr-1so when ip+=1 comes, ip is well set toaddr-1+1 == addr