smartparens
smartparens copied to clipboard
Significant delay when creating header in large org-mode file
Expected behavior
Header is created without lag
Actual behavior
Have to wait 10/20s before the typed header is displayed
Steps to reproduce the problem
Large org-mode file (~10k lines). Create new header at the bottom
Backtraces if necessary (M-x toggle-debug-on-error)
This is the profiler output:
- command-execute 7405 92%
- call-interactively 7405 92%
- funcall-interactively 7405 92%
- org-self-insert-command 7307 91%
- self-insert-command 7307 91%
- sp--post-self-insert-hook-handler 7305 91%
- sp-insert-pair 7304 91%
- sp--pair-to-insert 7304 91%
- sp--all-pairs-to-insert 7304 91%
- sp--do-action-p 7304 91%
- +org-sp-point-at-bol-p 7303 91%
- and 7303 91%
- sp--looking-back-p 7303 91%
sp--looking-back 4714 58%
+ -flatten 1 0%
+ sp--all-pairs-to-insert 1 0%
+ org-indent-refresh-maybe 1 0%
+ counsel-M-x 87 1%
+ handle-focus-in 11 0%
Environment & version information
smartparensversion: 20190728.2037- Active
major-mode:org-mode - Smartparens strict mode: nil
- Emacs version (
M-x emacs-version): GNU Emacs 25.3.1 (x86_64-apple-darwin17.2.0, NS appkit-1561.10 Version 10.13.1 (Build 17B1003)) of 2018-05-22 - Starterkit/Distribution: doom-emacs
- OS: darwin
I've tried in a 20k line org buffer without any noticable delay. I put point at the end of file then start typing *. Is this the repro?