- up to 6x faster members access
- up to 10x faster members
name
/value
access - up to 2x faster values positive check
- up to 3x faster values negative check
- up to 3x faster iteration
import fastenum
assert fastenum.enabled
from enum import Enum
assert Enum.__is_fast__()
EnumMeta.__getattr__
is removedDynamicClassAttribute
is removed in favor of instance attributesname
/value
are ordinal attributes and put in__slots__
when possible_missing_
type check is removed, as it was re-e-e-ally slowing things down (kinda breaking change, but who cares?)_order_
was removed as since python 3.6 dicts preserve order- some other minor improvements
I feel that this actually needs to be in stdlib, but patching all this stuff was actually easier for me that opening issue in python bug tracker