Use (sit-for 0) in Tramp

* lisp/net/tramp.el (tramp-wait-for-regexp): Use (sit-for 0) in
order to avoid performace regression.
This commit is contained in:
Michael Albinus 2024-09-21 10:22:13 +02:00
parent f9fa75c1ef
commit 2f80e62e6e

View file

@ -6042,7 +6042,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