Skip to content

fix(time): remove cached time optimization - #3611

Merged
ndyakov merged 2 commits into
masterfrom
ndyakov/cpu-issue
Nov 24, 2025
Merged

fix(time): remove cached time optimization#3611
ndyakov merged 2 commits into
masterfrom
ndyakov/cpu-issue

Conversation

@ndyakov

@ndyakov ndyakov commented Nov 24, 2025

Copy link
Copy Markdown
Member

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 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

ndyakov commented Nov 24, 2025

Copy link
Copy Markdown
Member Author

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

@ofekshenawa ofekshenawa left a comment

Copy link
Copy Markdown
Collaborator

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

2 participants