Function CPU samples %
+ command-execute 6928 32%
+ flycheck-perform-deferred-syntax-check 5399 25%
+ ... 4117 19%
+ delete-selection-pre-hook 2409 11%
+ linum-update-current 1739 8%
+ sp--save-pre-command-state 158 0%
+ evil-repeat-post-hook 109 0%
+ timer-event-handler 85 0%
+ yas--post-command-handler 58 0%
+ evil-repeat-pre-hook 52 0%
+ redisplay_internal (C function) 35 0%
+ which-key--hide-popup 24 0%
+ flycheck-handle-signal 11 0%
+ flycheck-display-error-at-point-soon 8 0%
+ evil--jump-hook 7 0%
+ company-pre-command 5 0%
+ company-post-command 4 0%
+ flycheck-hide-error-buffer 3 0%
+ internal-timer-start-idle 3 0%
+ flycheck-error-list-update-source 2 0%
global-hl-line-unhighlight 2 0%
+ global-hl-line-highlight 2 0%
tooltip-hide 1 0%
flycheck-error-list-highlight-errors 1 0%
上述profile我在一个js文件中粘贴了html代码(比如emacs-china页面的source)。由于paste执行每一行都会调用flycheck
还有delete-selection-pre-hook
等操作,一旦行数很多就会直接很卡,无法操作。有木有办法可以paste的时候禁用这些。
注意一点:这个在terminal中使用emacs(即emacs -nw
)会这么明显,正常的窗口模式还在可接受范围内。