Skip to content

Conversation

@ndyakov
Copy link
Member

@ndyakov ndyakov commented Nov 24, 2025

We had a report for higher cpu usage with 9.17 that I assume is related to the constant waking up of the background goroutine to update the cached time. This PR is opened to continue the investigation of the issue and provide a potential fix. If this "optimization" of the hot path is found to be the underlying issue, it may be implemented under a configuration option that can be enabled only from people that are aware of the potential tradeoffs (higher idle cpu usage for slightly better throughput)

Potentially fixes #3608

@ndyakov ndyakov changed the title bug(time): remove cached time optimization fix(time): remove cached time optimization Nov 24, 2025
@ndyakov ndyakov marked this pull request as ready for review November 24, 2025 11:06
@ndyakov ndyakov requested a review from ofekshenawa November 24, 2025 11:06
@ndyakov
Copy link
Member Author

ndyakov commented Nov 24, 2025

@ofekshenawa feel free to check the discussion in the linked issue.

Copy link
Collaborator

@ofekshenawa ofekshenawa left a comment

Choose a reason for hiding this comment

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

LGTM!

@ndyakov ndyakov added the bug label Nov 24, 2025
@ndyakov ndyakov merged commit 6390822 into master Nov 24, 2025
21 checks passed
@ndyakov ndyakov deleted the ndyakov/cpu-issue branch November 24, 2025 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

substantially higher CPU after upgrading to v9.17.0

3 participants