]> git.eshelyaron.com Git - emacs.git/commitdiff
; * rcirc.el (rcirc-print): Prefer sleep-for over sit-for
authorPhilip Kaludercic <philipk@posteo.net>
Sat, 19 Feb 2022 19:29:29 +0000 (20:29 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Sat, 19 Feb 2022 19:35:01 +0000 (20:35 +0100)
Compare

(benchmark-run 100000 (sit-for 0))
;; => (2.600030102 12 1.523461324000003)

with

(benchmark-run 100000 (sleep-for 0))
;; (0.015882939 0 0.0)

lisp/net/rcirc.el

index 9d1600ed72f167e1a7ff02ac4b6695d5a837d9dc..9bbba6dfbee1582788017875cb6e72536b80d141 100644 (file)
@@ -2043,7 +2043,7 @@ connection."
                        rcirc-log-process-buffers))
           (rcirc-log process sender response target text))
 
-        (sit-for 0)                    ; displayed text before hook
+        (sleep-for 0)                  ; displayed text before hook
         (run-hook-with-args 'rcirc-print-functions
                             process sender response target text)))))