mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #939] [MERGED] Save some more CPU cycles in the limiter #1151
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1151
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/939
Author: @JasonLG1979
Created: 1/15/2022
Status: ✅ Merged
Merged: 1/17/2022
Merged by: @roderickvd
Base:
dev← Head:save-some-cpu📝 Commits (6)
5c066acSave some more CPU cycles in the limiterc792c92Clean up and make everything f645b38f62Fix file read.e782d8fSimplify some more and do less redundant mathba7e599Clarify var names906b014condense logic📊 Changes
3 files changed (+64 additions, -58 deletions)
View changed files
📝
playback/src/config.rs(+1 -1)📝
playback/src/player.rs(+61 -55)📝
src/main.rs(+2 -2)📄 Description
This saves about 5% CPU usage on a Pi Zero and maybe 1-2% on a Pi 4. On anything more powerful than a Pi the diffrence is more than likely imperceivable.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.