Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add struct cache_hash option #596

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Add struct cache_hash option #596

merged 1 commit into from
Nov 27, 2023

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Nov 27, 2023

If enabled, the hash value for a frozen struct instance will be computed at most once, and then stored on the instance for further reuse. For expensive hash computations this can result in improved performance at the cost of a small amount of memory use.

Fixes #591.

If enabled, the hash value for a frozen struct instance will be computed
at most once, and then stored on the instance for further reuse. For
expensive hash computations this can result in improved performance at
the cost of a small amount of memory use.
@jcrist jcrist merged commit 6e8b23e into main Nov 27, 2023
8 checks passed
@jcrist jcrist deleted the struct-cache-hash branch November 27, 2023 20:37
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.

Caching hashes
1 participant