Skip to content

Templated Numerical Type#17

Merged
chenhao-ye merged 5 commits into
mainfrom
templated_type
Aug 12, 2025
Merged

Templated Numerical Type#17
chenhao-ye merged 5 commits into
mainfrom
templated_type

Conversation

@chenhao-ye
Copy link
Copy Markdown
Owner

Support customized numerical type in the class template. In general, the numerical assumption is:

  • To count the number of accesses, use size_t.
  • To sum up the total memory of a key-value cache, use size_t. This should not be uint32_t because it can easily grow over 4 GB.
  • The size of a single key-value pair, use uint32_t by default, but can be customized in the template as SizeType. A single key-value pair should not be larger than 4 GB, and we prefer to make the per-key metadata compacted.
  • The type of hash is uint32_t by default, because we don't need as many bits, but it can be customized in the template as HashType.

@chenhao-ye chenhao-ye merged commit 414a845 into main Aug 12, 2025
1 check failed
@chenhao-ye chenhao-ye deleted the templated_type branch August 12, 2025 21:14
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