移动一次光标会卡顿一次,如果等这次卡完,下次碰到移动光标的事件,仍会卡顿。
CPU的Profile如下
- command-execute 1333 55%
- call-interactively 1333 55%
- funcall-interactively 653 27%
- execute-extended-command 466 19%
- execute-extended-command--shorter 300 12%
- completion-try-completion 300 12%
- completion--nth-completion 300 12%
- completion--some 300 12%
+ #<compiled 0x1abe1a9> 300 12%
- command-execute 103 4%
- call-interactively 103 4%
- funcall-interactively 103 4%
+ profiler-report 103 4%
- sit-for 63 2%
+ redisplay 40 1%
read-event 6 0%
+ kill-buffer 63 2%
+ delete-other-windows 49 2%
+ next-line 45 1%
+ previous-line 30 1%
- byte-code 614 25%
- read-extended-command 614 25%
- completing-read 614 25%
- completing-read-default 614 25%
- read-from-minibuffer 498 20%
- command-execute 203 8%
- call-interactively 203 8%
- funcall-interactively 203 8%
- minibuffer-complete 201 8%
- completion-in-region 201 8%
- completion--in-region 201 8%
+ #<compiled 0x19ee851> 201 8%
self-insert-command 2 0%
+ linum-update-current 35 1%
+ fci-redraw-frame 30 1%
+ timer-event-handler 24 0%
+ redisplay_internal (C function) 20 0%
- completing-read-default 66 2%
- read-from-minibuffer 40 1%
+ linum-update-current 10 0%
+ fci-redraw-frame 3 0%
minibuffer-inactive-mode 1 0%
- ... 606 25%
- if 483 20%
- let 483 20%
- funcall 483 20%
+ #<lambda 0x330422980> 478 19%
+ #<lambda 0x1353ce60> 5 0%
Automatic GC 123 5%
+ linum-update-current 345 14%
+ timer-event-handler 84 3%
+ redisplay_internal (C function) 35 1%
blink-cursor-end 5 0%
lsp-ui-doc--make-request 3 0%
同时开启的次mode有
Enabled minor modes: Abbrev Auto-Compile-On-Save Auto-Composition
Auto-Compression Auto-Encryption Blink-Cursor Company Diff-Auto-Refine Eldoc Fci
File-Name-Shadow Flycheck Font-Lock Global-Company Global-Eldoc Global-Flycheck
Global-Font-Lock Line-Number Linum Lsp Lsp-Ui Lsp-Ui-Doc Menu-Bar Mouse-Wheel
Show-Smartparens Show-Smartparens-Global Smart-Tabs Smartparens
Smartparens-Global Tool-Bar Tooltip Transient-Mark Yas