News for hackers. Stuff that matters.
Re:HIGH CPU usage on Mac by Normal_gaussian on Thursday January 26, 2017 @10:16AM (#13491981)
This isn't fixed, it just isn't as bad as it used to be.

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.

There are no comments on this comment yet.