[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 43237f3d27: ; * rcirc.el (rcirc-print): Prefer sleep-for over sit
From: |
Philip Kaludercic |
Subject: |
master 43237f3d27: ; * rcirc.el (rcirc-print): Prefer sleep-for over sit-for |
Date: |
Sat, 19 Feb 2022 14:35:11 -0500 (EST) |
branch: master
commit 43237f3d27897e2a0c6de745770802d0ba40e3a5
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
; * rcirc.el (rcirc-print): Prefer sleep-for over sit-for
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 9d1600ed72..9bbba6dfbe 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -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)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 43237f3d27: ; * rcirc.el (rcirc-print): Prefer sleep-for over sit-for,
Philip Kaludercic <=