tig icon indicating copy to clipboard operation
tig copied to clipboard

permanently 100% cpu

Open vandenoever opened this issue 6 years ago • 2 comments

In my terminal (Konsole on NixOS 19.04) tig uses 100% cpu permanently. It is responsive and works well, but the 100% is not normal.

perf record -g tig
perf report

gives

+   69.45%    69.43%  .tig-wrapped  libncursesw.so.6.1  [.] _nc_hash_map_sp
+   67.76%     0.00%  .tig-wrapped  [unknown]           [.] 0x00007fe87c006425
+    8.35%     8.34%  .tig-wrapped  libncursesw.so.6.1  [.] ClrBottom
+    5.50%     5.48%  .tig-wrapped  libncursesw.so.6.1  [.] doupdate_sp
+    3.35%     0.00%  .tig-wrapped  [unknown]           [.] 0x00007fe87cf895c0
+    3.20%     3.18%  .tig-wrapped  libncursesw.so.6.1  [.] _nc_scroll_optimize_sp
+    3.15%     0.00%  .tig-wrapped  [unknown]           [.] 0x00007fe87c000025
+    2.14%     2.12%  .tig-wrapped  libncursesw.so.6.1  [.] grow_hunks

vandenoever avatar Jul 06 '19 09:07 vandenoever

Running tig from console (not X) does not give 100% cpu. Running via ssh or as sudo tig also does not give 100% cpu. Running with minimal env variables in X (env -i PATH=$PATH TERM=$TERM tig) gives 100% cpu use.

vandenoever avatar Jul 06 '19 09:07 vandenoever

Does it still happen after 38c54de739c9752d5107288db0d5a6ca48efdd31 ?

koutcher avatar Jul 02 '22 09:07 koutcher