[hackers] [statuscolor] high CPU usage with a lot of colors

From: Christian Rebischke <chris.rebischke_AT_gmail.com>
Date: Sat, 9 Jan 2016 19:47:31 +0100

Hello everybody,
Maybe you can help me. I am using the statuscolor patch with the following

```
settings:
#define NUMCOLORS 5
static const char colors[NUMCOLORS][MAXCOLORS][8] = {
  // border foreground background
  { "#444444", "#bbbbbb", "#000000" }, // normal
  { "#005577", "#eeeeee", "#005577" }, // selected
  { "#ff0000", "#eeeeee", "#007722" }, // up
  { "#444444", "#eeeeee", "#772200" }, // down
  { "#444444", "#eeeeee", "#775e00" } // middle
  // add more here
};
```

Furthermore I am using this custom script https://paste.archlinux.de/YrJ8Vg/
. When I execute it, it looks like this: https://paste.archlinux.de/NY7f/ .
My problem is that DWM is using a lot CPU Power when I execute it. Even when
I just execute the script once and stop it, DWM will still use a lot of CPU
(about 20-40% on both cores of my AMD E2 Vision Dualcore). Only when I reset
the statusbar via: xsetroot -name "bla" the usage goes down.
I know, my bash-script is also not very efficient. But my bash-script only
needs about 1% of my CPU.. If I use DWM with so much colours, DWM needs
20-40% CPU at highest and 5% in idle.. Maybe it's a bug in statuscolours?

Received on Sat Jan 09 2016 - 19:47:31 CET

This archive was generated by hypermail 2.3.0 : Sat Jan 09 2016 - 19:48:14 CET