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

Optimize listen function #65

Merged
merged 1 commit into from
Jun 28, 2022

Commits on Jun 28, 2022

  1. Optimize listen function

    - Use grep first to receive only the wanted lines
    - Flush the pending events to call output only once
    
    With multiple occurrences of pulseaudio-control started, I noticed
    that on quick changes (i.e. volume or iterating through the sinks),
    the cpu usage increased a lot for the action.
    
    pactl is quite noisy, and a single event can generate multiple
    matching lines.
    
    This commit reduces the calls to output to one per 100ms.
    Aerion committed Jun 28, 2022
    Configuration menu
    Copy the full SHA
    349f205 View commit details
    Browse the repository at this point in the history