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

Progress bar CPU usage is high under very high concurrency #207

Closed
ajalt opened this issue Aug 18, 2024 · 0 comments · Fixed by #208
Closed

Progress bar CPU usage is high under very high concurrency #207

ajalt opened this issue Aug 18, 2024 · 0 comments · Fixed by #208

Comments

@ajalt
Copy link
Owner

ajalt commented Aug 18, 2024

I ran the IntelliJ Profiler on my example above and added your spinlock fix, and I noticed that while update() did take a lot of time,

image

interestingly samples.dropWhile {} seems to take longer.

val samples = samples.dropWhile { it.time < oldestSampleTime } + entry

image

Flamegraph:

image

Originally posted by @aSemy in #204 (comment)

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 a pull request may close this issue.

1 participant