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

Avoid busy wait in bapm_server #200

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Avoid busy wait in bapm_server #200

merged 1 commit into from
Jan 22, 2024

Conversation

sajith
Copy link
Member

@sajith sajith commented Jan 12, 2024

By default, Queue.get() is a blocking call; no need of checking if the queue is non-empty in a loop.

Resolves #199. I believe this is similar to issue #33, which was resolved by PR #175.

Queue.get is a blocking call; no need of checking if the queue is
non-empty in a loop.

https://docs.python.org/3/library/queue.html#queue.Queue.get
@sajith sajith requested a review from congwang09 January 12, 2024 03:32
@sajith sajith self-assigned this Jan 12, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 7497582194

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.2%) to 38.013%

Totals Coverage Status
Change from base Build 6239647665: 0.2%
Covered Lines: 516
Relevant Lines: 1222

💛 - Coveralls

@sajith sajith requested a review from YufengXin January 18, 2024 13:23
@sajith sajith merged commit b3c3040 into main Jan 22, 2024
7 checks passed
@sajith sajith deleted the 199.bapm-cpu-usage branch January 22, 2024 21:46
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.

High CPU usage when running bapm_server
3 participants