Skip to content

Use AtomicUsize rather than AtomicU64 in CacheKey. - #70

Merged
dfrg merged 1 commit into
dfrg:mainfrom
xorgy:atomic-usize-rather-than-atomic-u64-cachekey
Nov 7, 2024
Merged

Use AtomicUsize rather than AtomicU64 in CacheKey.#70
dfrg merged 1 commit into
dfrg:mainfrom
xorgy:atomic-usize-rather-than-atomic-u64-cachekey

Conversation

@xorgy

@xorgy xorgy commented Nov 6, 2024

Copy link
Copy Markdown
Collaborator

AtomicU64 is unavailable on most 32-bit targets, but AtomicUsize is available most targets.

It is exceedingly unlikely that there will be more CacheKeys than bytes in the process address space.

`AtomicU64` is unavailable on most 32-bit targets,
but `AtomicUsize` is available most targets.

It is exceedingly unlikely that there will be more `CacheKey`s
than bytes in the process address space.
@xorgy

xorgy commented Nov 6, 2024

Copy link
Copy Markdown
Collaborator Author

This patch is a subset of #69 which avoids a breaking change, may be superseded by #69 for our next breaking release.

@dfrg dfrg left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for reducing the scope.

@dfrg
dfrg merged commit b1b54cc into dfrg:main Nov 7, 2024
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.

2 participants