Skip to content

Reduce thread wakeups by using proper async#196

Merged
sastraxi merged 18 commits into
mainfrom
perf/websocket-sleep
Jul 17, 2026
Merged

Reduce thread wakeups by using proper async#196
sastraxi merged 18 commits into
mainfrom
perf/websocket-sleep

Conversation

@sastraxi

@sastraxi sastraxi commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

On an RPi 3A+, the previous WS approach was causing a ton of spurious thread hand-offs, sucking down a lot of power. This uses the proper asyncio Event primitive to wakeup the thread on commands or receives.

Test with rapidly clicking footswitches as well as changing parameters from MOD-UI and reflecting them on the pi-Stomp.

@sastraxi
sastraxi requested a review from rreichenbach July 11, 2026 04:17
@sastraxi
sastraxi changed the base branch from feat/v2-support to main July 17, 2026 22:49
@sastraxi
sastraxi merged commit 8928ed9 into main Jul 17, 2026
2 checks passed
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