]> git.eshelyaron.com Git - emacs.git/commitdiff
Use (sit-for 0) in Tramp
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 21 Sep 2024 08:22:13 +0000 (10:22 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Sep 2024 10:45:22 +0000 (12:45 +0200)
* 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

index caa21d2f50654db0da0a781ce6743cb83cf3d0d4..d8302b159f66abc4a3698c95f72bec6684f9f118 100644 (file)
@@ -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