Skip to content

Faster enum checks - #102

Merged
jcrist merged 1 commit into
masterfrom
enum-perf
Apr 22, 2022
Merged

Faster enum checks#102
jcrist merged 1 commit into
masterfrom
enum-perf

Conversation

@jcrist

@jcrist jcrist commented Apr 22, 2022

Copy link
Copy Markdown
Member

Instead of checking subtypes, we can check if the type of the type is
EnumMeta. This results in a 20% speedup in encoding IntEnum objects.

Instead of checking subtypes, we can check if the type of the type is
EnumMeta. This results in a 20% speedup in IntEnum encode type.
@jcrist
jcrist merged commit e7e2ace into master Apr 22, 2022
@jcrist
jcrist deleted the enum-perf branch April 22, 2022 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant