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

Changing TimeStamp to a value type in order to reduce unnecessary heap allocations #225

Merged
merged 6 commits into from
Dec 18, 2023
Merged

Changing TimeStamp to a value type in order to reduce unnecessary heap allocations #225

merged 6 commits into from
Dec 18, 2023

Conversation

AmirShitrit
Copy link
Contributor

In this PR the TimeStamp type is changed to a readonly record struct in order to reduce allocations on the heap and improve performance when handling large amounts of TimeStamp values.

@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f0faa18) 94.12% compared to head (7a2ef83) 94.14%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #225      +/-   ##
==========================================
+ Coverage   94.12%   94.14%   +0.01%     
==========================================
  Files          85       85              
  Lines        5178     5173       -5     
  Branches      488      486       -2     
==========================================
- Hits         4874     4870       -4     
  Misses        177      177              
+ Partials      127      126       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shacharPash shacharPash merged commit 92e3d82 into redis:master Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants