tcolar / goed

Terminal based code editor / development environment
MIT License
133 stars 6 forks source link

OSX : High Idle wake-ups and CPU usage #156

Closed tcolar closed 7 years ago

tcolar commented 7 years ago

screen shot 2016-10-18 at 2 25 48 pm

tcolar commented 7 years ago

It seems after inactivity it does down as it should for goed-wde but not as much for goed-termbox and even much less for goed-tcell ... hum .... all just have a "." listing view open.

screen shot 2016-10-20 at 2 17 14 pm
tcolar commented 7 years ago

Using top is more direct and reports similar findings top -stats pid,command,cpu,idlew,power -o power -d

PID                                   COMMAND                                         %CPU                                IDLEW                               POWER
52911                                 goed                                            1.2                                 457                                 23.5
605                                   iTerm2                                          7.6                                 19                                  8.6
tcolar commented 7 years ago

1) It seems the 16ms ticker in actionbus is partly to blame, maybe i can use a blockign channel instead.

2) It's much much worst with tcell than the other backends, the tcell inputloop seems to blame.

tcolar commented 7 years ago

Now fixed internally in goed, however it still occurs with the tcell front-end, must be an issue in tcell itself (upstream)

tcolar commented 7 years ago

See https://github.com/gdamore/tcell/issues/129

tcolar commented 7 years ago

Applied a fix in a fork of tcell for the time being.

tcolar commented 6 years ago

Now fixed in mainline tcell