1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

; * 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)
This commit is contained in:
Philip Kaludercic 2022-02-19 20:29:29 +01:00
parent f262a6af36
commit 43237f3d27

View 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)))))