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

Move SpotListener newTicker out of the infinite loop #72

Merged
merged 1 commit into from
Feb 24, 2019

Conversation

mlehner616
Copy link
Contributor

Regarding #71

I'm not 100% certain this isn't a red herring. I have to wait for some amount of time see if the leak goes away on my side. pprof didn't show anything hugely out of the ordinary but I could have missed something.

This looks like it was creating a NewTicker on each iteration of the for loop without cleaning it up resulting in a slow increase of CPU churn over time. Moving the NewTicker outside of the loop and setting the case to strike only when the single instance of tockChan signals should help alleviate growth.

@lox
Copy link
Contributor

lox commented Feb 24, 2019

Thanks @mlehner616, I'd be super surprised if this was the cause, but let's fix it anyway. Appreciate you digging into it. @itsdalmo any other ideas?

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