|
From: | Clément Pit-Claudel |
Subject: | bug#41200: Displaying a tooltip with x-show-tip gets very slow as more faces are defined |
Date: | Tue, 12 May 2020 07:30:01 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 12/05/2020 02.42, martin rudalics wrote: >> Is seems that defining a face makes x-show-tip a tiny bit slower, but >> these effects stack. > > Please try with 'tooltip-reuse-hidden-frame' non-nil (there's nothing we > can do about a session's first tooltip appearance, though). I'm not seeing a difference here. I used this code to test: (defun my-def-many-faces (nfaces) (dotimes (i nfaces) (custom-declare-face (intern (format "my-face-%d" i)) '((t)) "A face." :group 'basic-faces))) (defun my-bench-x-tip (nfaces) (setq x-gtk-use-system-tooltips nil tooltip-reuse-hidden-frame t) (my-def-many-faces nfaces) (benchmark-run 1 (x-show-tip "Test" (selected-frame) nil 5 nil nil)))
[Prev in Thread] | Current Thread | [Next in Thread] |