On Thu, Oct 14, 2021 at 11:03 PM Jeremiah Vivian <nohackingofkrow...@gmail.com> wrote: > > 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()))` >
So, negligible benefits. Thanks for checking. ChrisA _______________________________________________ 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/PTWIQ4GZLT472FVDEFKGVKK7T7WZ5QX6/ Code of Conduct: http://python.org/psf/codeofconduct/