Mouse selection appears slow ?
jiucenglou opened this issue · 2 comments
Mouse selection in Emacs downloaded from GNU ftp is almost instantaneous. However, mouse selection in Emacs with emax feels slower. Could you suggest how to solve the problem or how to diagonalize further ?
The following numbers were reported by Emacs' CPU profiler (M-x profiler-start RET RET, M-x profiler-report RET) for mouse selection in Emacs for a few times. It looks like that with emax, some completion actions ate CPU. Would this be the cause ?
Mouse selection in Emacs tutorial for a few times in Emacs downloaded from GNU ftp
- command-execute 3 60%
- call-interactively 3 60%
- byte-code 2 40%
- read-extended-command 2 40%
- completing-read 2 40%
completing-read-default 2 40%
- funcall-interactively 1 20%
- execute-extended-command 1 20%
- sit-for 1 20%
redisplay 1 20%
- ... 2 40%
Automatic GC 2 40%
Mouse selection in Emacs tutorial for a few times in with emax
- command-execute 42 50%
- call-interactively 40 47%
- funcall-interactively 36 42%
- execute-extended-command 30 35%
- execute-extended-command--shorter 29 34%
- completion-try-completion 29 34%
- completion--nth-completion 29 34%
+ completion--some 29 34%
+ sit-for 1 1%
+ help-with-tutorial 4 4%
+ profiler-report-toggle-entry 1 1%
+ mouse-set-point 1 1%
- byte-code 4 4%
+ read-extended-command 4 4%
+ ... 26 30%
mouse-fixup-help-message 7 8%
tooltip-show-help-non-mode 6 7%
- redisplay_internal (C function) 2 2%
- #<compiled 0x10a21db> 2 2%
apply 2 2%
- internal-echo-keystrokes-prefix 1 1%
- run-hook-wrapped 1 1%
#<compiled 0x2fdd4e5> 1 1%
Mouse selection in ~/emax/emax.org for a few times in with emax
- command-execute 23 92%
- call-interactively 23 92%
- funcall-interactively 21 84%
- execute-extended-command 21 84%
- execute-extended-command--shorter 19 76%
- completion-try-completion 19 76%
- completion--nth-completion 19 76%
- completion--some 19 76%
+ #<compiled 0x822b0b5> 19 76%
sit-for 2 8%
- byte-code 2 8%
+ read-extended-command 2 8%
- ... 1 4%
- minibuffer-complete 1 4%
- completion-in-region 1 4%
- completion--in-region 1 4%
+ #<compiled 0x821f81d> 1 4%
Automatic GC 0 0%
redisplay_internal (C function) 1 4%
I have done installation again on another desktop PC (i7-4790), and mouse selection is instantaneously in both vanilla Emacs and Emacs with emax. I am closing this issue because the slow mouse selection seems to be related to my laptop PC (i5-6400). Sorry for the trouble.
It looks like my problem can be considered "solved":
- The slow mouse selection, reported above, happens when I remotely log into the laptop PC through RDP from the desktop PC with a 32' screen and start Emacs.
- The slow mouse selection goes away (or is less obvious) if I first locally log into the laptop PC and start emacs, and then remotely log into the laptop PC through RDP and use the pre-started Emacs.
Therefore, the reason might be related to Emacs' rendering dependence on startup resolution.