>>>>> On Tue, 10 Mar 2020 09:55:06 +0100, Philipp Stephani >>>>> <p.stepha...@gmail.com> said:
Philipp> Hi, Philipp> I managed to speed up start-file-process for SSH by a factor of 500 Philipp> (on my machine) by enabling SSH control mode in ~/.ssh/config and then Philipp> just calling Philipp> (start-process name buffer "ssh" program args). Philipp> Such a speedup is crucial for using start-file-process for truly Philipp> asynchronous operations that may not block, e.g., Flymake backends. Philipp> Are there any downsides to my approach? Would if be possible to Philipp> include it in Tramp itself? You mean like the following? :-) (defvar tramp-ssh-controlmaster-options nil "Which ssh Control* arguments to use. If it is a string, it should have the form \"-o ControlMaster=auto -o ControlPath=\\='tramp.%%r@%%h:%%p\\=' -o ControlPersist=no\". Percent characters in the ControlPath spec must be doubled, because the string is used as format string. Otherwise, it will be auto-detected by Tramp, if `tramp-use-ssh-controlmaster-options' is non-nil. The value depends on the installed local ssh version. The string is used in `tramp-methods'.")