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

chore: replace chrono with absl in PipelineCacheSizeTracker #4748

Merged
merged 1 commit into from
Mar 12, 2025
Merged

Conversation

kostasrim
Copy link
Contributor

Use absl Time instead of Chrono in PipelineCacheSizeTracker

Signed-off-by: kostas <kostas@dragonflydb.io>
@kostasrim kostasrim requested a review from adiholden March 11, 2025 13:36
using Limits = std::numeric_limits<size_t>;

Tp last_check_ = Clock::now();
absl::Time last_check_ = absl::Now();
Copy link
Contributor Author

@kostasrim kostasrim Mar 11, 2025

Choose a reason for hiding this comment

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

I am not convinced about any performance impacts of this (as promised I will benchmark / perf and see if chrono has any measurable overhead in our hot paths) but FOR SURE it has SHORTER naming and requires less typing 🤣

I promise once I get some free bandwidth I will make a case for this 😄 For now I am blindly trusting the sentiment.

@kostasrim kostasrim self-assigned this Mar 11, 2025
@kostasrim kostasrim merged commit 59a8c36 into main Mar 12, 2025
10 checks passed
@kostasrim kostasrim deleted the kpr2 branch March 12, 2025 07: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.

None yet

2 participants