Skip to content

Add struct cache_hash option - #596

Merged
jcrist merged 1 commit into
mainfrom
struct-cache-hash
Nov 27, 2023
Merged

jcrist merged 1 commit into
mainfrom
struct-cache-hash

Conversation

@jcrist

@jcrist jcrist commented Nov 27, 2023

Copy link
Copy Markdown
Member

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
@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