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

replace Resolved with ResolvedAt to reduce amount call to time.Now() #4119

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

evkuzin
Copy link

@evkuzin evkuzin commented Nov 13, 2024

with big number of inhibitions I see pretty bad picture when we spend plenty of time in time.Now()
This can be fixed by calling it once per hasEqual
image

@evkuzin evkuzin force-pushed the fix_time_now_enormous_overhead branch 2 times, most recently from bfe9b6b to 7f0c30b Compare November 13, 2024 09:19
…me.Now() to 1 per iteration

Signed-off-by: Evgeny Kuzin <[email protected]>
@evkuzin evkuzin force-pushed the fix_time_now_enormous_overhead branch from 7f0c30b to 7f5c8ff Compare November 13, 2024 09:21
@evkuzin
Copy link
Author

evkuzin commented Nov 13, 2024

@w0rm WDYT?

@grobinson-grafana
Copy link
Contributor

Seems reasonable to me. What does the profile look like with the change?

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.

2 participants