From 3ca542352c192dfcd3f42ced6280fe0fcfe48584 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sat, 21 Sep 2024 10:22:13 +0200 Subject: [PATCH] Use (sit-for 0) in Tramp * lisp/net/tramp.el (tramp-wait-for-regexp): Use (sit-for 0) in order to avoid performace regression. (cherry picked from commit 2f80e62e6e0ed2502fdf4be948c55f0b9ea72fb1) --- lisp/net/tramp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index caa21d2f506..d8302b159f6 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el @@ -6030,7 +6030,7 @@ nil." (with-tramp-timeout (timeout) (while (not found) ;; This is needed to yield the CPU, otherwise we'll see 100% CPU load. - ;(sit-for 0.005) + (sit-for 0) (tramp-accept-process-output proc) (unless (process-live-p proc) (tramp-error-with-buffer -- 2.39.5