Results are in (tested 
`next(iter(d))`/`next(iter(d.values())`/`next(iter(d.items())` and their 
`next(reverse())` counterparts):
`*` / `/` implemented is 2x faster than `next(iter(d))`/`next(reversed(d))`
`+` / `-` implemented is approximately 3x faster than 
`next(iter(d.values()))`/`next(reversed(d.values()))`
`<<` / `>>` implemented is at least 4x faster than 
`next(iter(d.items()))`/`next(reversed(d.items()))`
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/ZYI7V7VAGEKUS4TUSEZVY36QB2KOHABA/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to