Skip to content

Cache the result of DNS* __hash__ #959

@bdraco

Description

@bdraco

These are immutable so we should not be checking them every time.

https://www.attrs.org/en/stable/hashing.html#hash-code-caching

Since they are not strings python isn't caching them : https://bugs.python.org/issue1462796

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions