[issue42915] enum.Flag ~ bitwise negation is very slow and can't be defined as a Flag value
Ethan Furman
report at bugs.python.org
Wed Jan 13 02:42:09 EST 2021
Ethan Furman <ethan at stoneleaf.us> added the comment:
I just finished a rewrite of Flag for 3.10. Using your test below I was able to tweak the rewrite so the final numbers are:
Took normal 0.148092 seconds.
Took cached 0.017438 seconds.
Your original post had a ratio of nearly 200 -- it is now 8.7ish.
----------
assignee: -> ethan.furman
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42915>
_______________________________________
More information about the Python-bugs-list
mailing list