jesseduffield.lazygit/pkg/commands/oscommands
Stefan Haller e056e33da5 Improve CPU usage when flicking through large diffs
The previous commit already fixed the user-visible lag, but there's still a
problem with multiple background git processes consuming resources calculating
diffs that we are never going to show. Improve this by terminating those
processes (by sending them a TERM signal).

Unfortunately this is only possible on Linux and Mac, so Windows users will have
to live with the higher CPU usage. The recommended workaround is to not use
"diff.algorithm = histogram".
2025-08-11 18:07:21 +02:00
..
cmd_obj.go Use PTY also with credentialStrategy=FAIL 2025-05-23 11:34:57 +02:00
cmd_obj_builder.go Remove some unused code 2025-07-08 15:14:45 +02:00
cmd_obj_runner.go Close the pty instead of killing the process for runAndDetectCredentialRequest 2025-08-01 10:32:47 +02:00
cmd_obj_runner_default.go Rename getCmdHandler to getCmdHandlerPty, and add getCmdHandlerNonPty 2025-05-01 15:21:37 +02:00
cmd_obj_runner_test.go Close the pty instead of killing the process for runAndDetectCredentialRequest 2025-08-01 10:32:47 +02:00
cmd_obj_runner_win.go Rename getCmdHandler to getCmdHandlerPty, and add getCmdHandlerNonPty 2025-05-01 15:21:37 +02:00
cmd_obj_test.go Remove secureexec package 2023-07-30 19:59:51 +10:00
copy.go chore: use errors.New to replace fmt.Errorf with no parameters. 2024-04-24 16:21:34 +08:00
dummies.go Move NewDummyCommon to pkg/common 2025-05-06 09:43:26 +02:00
fake_cmd_obj_runner.go Remove ICmdObj interface 2025-05-01 15:21:37 +02:00
gui_io.go Use first class task objects instead of global counter 2023-07-09 21:30:19 +10:00
os.go Cleanup: move UpdateWindowTitle to platform-specific source files 2025-08-11 18:07:21 +02:00
os_default_platform.go Improve CPU usage when flicking through large diffs 2025-08-11 18:07:21 +02:00
os_default_test.go Change direct access to Common.UserConfig to a getter 2024-08-18 10:24:52 +02:00
os_test.go Fix typos 2025-01-03 10:50:36 +11:00
os_windows.go Improve CPU usage when flicking through large diffs 2025-08-11 18:07:21 +02:00
os_windows_test.go Use non-deprecated 'OS.Open' config in OpenFile test on Windows 2025-07-08 16:32:21 +02:00