HIGH CPU usage on Mac
community.spotify.com
community.spotify.com
As a developer, I hate that we're becoming a bunch of "whatever"s. I mean this is junk behavior.
Not to mention the battery impact of poorly written javascript SPA's or advertisements.
[1]: https://bugs.chromium.org/p/chromium/issues/detail?id=52663
OTOH there are almost certainly sites that trigger very bad behavior here. While I've never dug into it too much, it wouldn't surprise me that session store was part of why e.g. IRCCloud or Slack have such high power usage (although I don't know for certain -- it could just as easily be something else).
My understanding is that SSD lifetimes concerns are largely misplaced (or at the very least, only relevant for a fairly small subset of users) and that even reasonably old SSDs can handle well into petabytes of writes -- which is far above what this behavior can reasonably approach. But power usage concerns are totally legitimate IMO.
Full disclosure: I'm not unbiased here, I work on Firefox (but have never touched session store).
And instead of putting two engineers on fixing this they also try to "add value" by hijacking the accessibility support of your computer. Fortunately Apple catches this, warns you, and lets you say no.
Despite all this: I have tried Box, Onedrive, iCloud Drive, and Google Drive and still, Dropbox sucks the least in terms of naive user compatibility and fewest surprises. I don't know why this is so hard to get right!?
When they had apps spotify would spin at ~90% of one core for me. When they had just musixmatch, spotify would switch between 30% and 60%. Now it decides to randomly run at 90% for about ten seconds every few songs.
A workaround:
cat ~/bin/music
#!/bin/bash
error() {
echo "[Error] $@" 1>&2
}
if [ -z "$(which cpulimit 2>/dev/null)" ]; then
error "Missing package cpulimit"
exit 1
fi
if [ -z "$(which spotify 2>/dev/null)" ]; then
error "Missing package spotify"
exit 2
fi
if test -t 1; then
exec 1>/dev/null
fi
if test -t 2; then
exec 2>/dev/null
fi
launch() {
cpulimit -l 30 spotify
}
launch &
And I see no degradation in performance. This is severely low quality software engineering.(Not this CPU issue, but general lack of parity with other players and no movement in that direction.)
https://community.spotify.com/t5/forums/searchpage/tab/messa...
Not that this issue is necessarily due to sleep itself, but likely due to active polling instead of event handling.
For those of us using Chrome, uninstall Spotify desktop app. Make sure you have uBlock and Privacy Badger installed, go to https://play.spotify.com, sign in, and enjoy ad-free Spotify.