Try out some TRAMP performance improvements

As suggested by https://coredumped.dev/2025/06/18/making-tramp-go-brrrr./ .
This commit is contained in:
Daniel Borchmann 2025-06-28 09:51:22 +02:00
parent 1ec3748fc4
commit df70776a8b
No known key found for this signature in database
GPG Key ID: 50EA937BF472ADD1

22
init.el
View File

@ -2318,9 +2318,27 @@ Note that this workaround is incomplete, as explained in this comment."
:commands (turn-on-gnus-dired-mode)) :commands (turn-on-gnus-dired-mode))
(use-package tramp (use-package tramp
:init (setq tramp-default-method (if on-windows "pscp" "scp") :init (setopt tramp-default-method (if on-windows "pscp" "scp")
tramp-completion-use-auth-sources nil tramp-completion-use-auth-sources nil
tramp-histfile-override "~/.tramp_history")) tramp-histfile-override "~/.tramp_history"
tramp-use-scp-direct-remote-copying t
tramp-verbose 2)
:config (progn
;; Use direct async processes for creating processes; see
;; https://coredumped.dev/2025/06/18/making-tramp-go-brrrr./#use-direct-async.
(connection-local-set-profile-variables
'remote-direct-async-process
'((tramp-direct-async-process . t)))
(connection-local-set-profiles
'(:application tramp :protocol "scp")
'remote-direct-async-process)
(connection-local-set-profiles
'(:application tramp :protocol "pscp")
'remote-direct-async-process)))
(use-package trashed (use-package trashed
;; A simple dired-like interface to the system trash bin ;; A simple dired-like interface to the system trash bin