Skip to content

Sleep During Polling Loops To Reduce High CPU Usage#12

Open
riggsd wants to merge 1 commit into
KM4YRI:masterfrom
riggsd:fix-high-cpu-tx
Open

Sleep During Polling Loops To Reduce High CPU Usage#12
riggsd wants to merge 1 commit into
KM4YRI:masterfrom
riggsd:fix-high-cpu-tx

Conversation

@riggsd
Copy link
Copy Markdown

@riggsd riggsd commented Jul 24, 2025

When calling send(msg) with very slow digital modes like the THOR family, I noticed that CPU usage for the Python process was 100%, even though FlDigi itself was doing all of the modulation work, not the XML-RPC client bindings. This small PR adds 50ms sleep() to all of the polling tight loops. CPU usage for the Python process is now negligible while polling on my system, with local XML-RPC server.

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.

1 participant