On Thu, Oct 14, 2021 at 11:03 PM Jeremiah Vivian <[email protected]> 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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/PTWIQ4GZLT472FVDEFKGVKK7T7WZ5QX6/ Code of Conduct: http://python.org/psf/codeofconduct/
