Skip to content

Commit

Permalink
spot: Build an optimised binary, to drop CPU usage: 70% -> 10%
Browse files Browse the repository at this point in the history
xou816/spot#131 reports that this dropped
~30-40% to 5-10% on an i7-7700.

On my Pinephone, it dropped 70% to 10%.
  • Loading branch information
tomfitzhenry committed Sep 18, 2021
1 parent 9ec36de commit 3db4181
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/applications/audio/spot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ stdenv.mkDerivation rec {
libpulseaudio
];

# Per https://github.com/xou816/spot/blob/2a591febcfa4b9690ea166097392d2a327cd0c60/README.md#L111 .
mesonBuildType = "release";

postPatch = ''
chmod +x build-aux/cargo.sh
patchShebangs build-aux/cargo.sh build-aux/meson/postinstall.py
Expand Down

0 comments on commit 3db4181

Please sign in to comment.