bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#21028: Performance regression in revision af1a69f4d17a482c359d98c00e


From: Eli Zaretskii
Subject: bug#21028: Performance regression in revision af1a69f4d17a482c359d98c00ef86fac835b5fac (Apr 2014).
Date: Sun, 12 Mar 2017 19:48:46 +0200

> Cc: address@hidden
> From: Clément Pit--Claudel <address@hidden>
> Date: Sun, 12 Mar 2017 13:24:11 -0400
> 
> $ time src/emacs -Q --eval "(progn (set-fontset-font \"fontset-startup\" 
> 'unicode \"Ubuntu Mono\" nil) (set-fontset-font \"fontset-startup\" 'unicode 
> \"XITS Math\" nil 'append) (dotimes (_ 500) (insert (make-string 20 8658) 
> \"\n\") (run-with-idle-timer 0 nil #'kill-emacs)))"
> real  0m1.503s
> user  0m0.540s
> sys   0m0.244s
> 
> $ time src/emacs -Q --eval "(progn (set-fontset-font \"fontset-startup\" 
> 'unicode \"Ubuntu Mono\" nil) (dotimes (_ 500) (insert (make-string 20 8658) 
> \"\n\") (run-with-idle-timer 0 nil #'kill-emacs)))"
> real  0m0.473s
> user  0m0.216s
> sys   0m0.040s
> 
> # With your latest patch
> $ time emacs -Q --eval "(progn (set-fontset-font \"fontset-startup\" 'unicode 
> \"Ubuntu Mono\" nil) (set-fontset-font \"fontset-startup\" 'unicode \"XITS 
> Math\" nil 'append) (dotimes (_ 500) (insert (make-string 20 8658) \"\n\") 
> (run-with-idle-timer 0 nil #'kill-emacs)))"
> real  0m0.382s
> user  0m0.252s
> sys   0m0.020s
> 
> In fact, on my machine, I get consistent results (unusably slow Emacs) 
> regardless of whether I pick XITS Math, Symbola, or Latin modern Math (on all 
> of 24.4, 24.5, and 25.1, but not on 24.3 of course), and your patch solves 
> the problem perfectly in all of these cases

So you are saying that this:

  $ time src/emacs -Q --eval "(progn (set-fontset-font \"fontset-startup\" 
'unicode \"Ubuntu Mono\" nil) (set-fontset-font \"fontset-startup\" 'unicode 
\"Symbola\" nil 'append) (dotimes (_ 500) (insert (make-string 20 8658) \"\n\") 
(run-with-idle-timer 0 nil #'kill-emacs)))"

takes about 1.5 sec on your system, is that right?  (Note that I
replaced XITS Math with Symbola here.)  If so, is the Ubuntu Mono part
necessary for reproducing the slow display, i.e. if you remove that
part, do you still get 1.5 sec?





reply via email to

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