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 for loops with wait-group in runtime (Reduce CPU usage) #709

Open
emil14 opened this issue Sep 27, 2024 · 0 comments
Open

Replace for loops with wait-group in runtime (Reduce CPU usage) #709

emil14 opened this issue Sep 27, 2024 · 0 comments

Comments

@emil14
Copy link
Collaborator

emil14 commented Sep 27, 2024

Add numbers example can fully utilize 2 CPU cores (180-190%). The reason might be in functions that abuse for with select. We need to experiment with runtime.Goshed() and sync.WaitGroup and check if CPU usage getting lower.

@emil14 emil14 added the Major label Sep 27, 2024
@emil14 emil14 changed the title Reduce CPU usage (Reduce CPU usage) Oct 29, 2024
@emil14 emil14 changed the title (Reduce CPU usage) Replace for loops with wait-group in runtime (Reduce CPU usage) Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant