emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Redisplay slower in Emacs 28 than Emacs 27


From: Lars Ingebrigtsen
Subject: Re: Redisplay slower in Emacs 28 than Emacs 27
Date: Tue, 08 Dec 2020 21:51:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> I mean, it's between 0% to 50% faster, but the 50% test was somewhat
> unrealistic (many identical images in the same buffer).  In a more
> realistic, but very image-heavy eww-like buffer, it's about 15% faster
> scrolling through the buffer.

img_hash 32.1s
sxhash 42.0s

with this test:

(defun bench ()
  (switch-to-buffer "images")
  (erase-buffer)
    (dotimes (i 200)
      (let ((file (format "/tmp/P%d.JPG" (+ i 1320800))))
        (when (file-exists-p file)
          (insert-image
           (create-image
            (with-temp-buffer
              (set-buffer-multibyte nil)
              (insert-file-contents-literally file)
              (buffer-string))
            'jpeg t :scale 1)))
        (insert "\n\n")))
  (goto-char (point-min))
  (benchmark-progn
    (dotimes (i 5)
      (goto-char (point-min))
      (while (not (eobp))
        (sit-for 0.01)
        (forward-line 2)))))

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]