Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editing xml using spacemacs response slow and can't smooth scroll #6689

Closed
jaycelq opened this issue Jul 27, 2016 · 5 comments
Closed

editing xml using spacemacs response slow and can't smooth scroll #6689

jaycelq opened this issue Jul 27, 2016 · 5 comments

Comments

@jaycelq
Copy link

jaycelq commented Jul 27, 2016

The nXml mode is reacts really slow when editing xml file.
Here is my minor mode:

Enabled minor modes: Anzu Auto-Composition Auto-Compression Auto-Encryption
Column-Number Company Electric-Indent Eval-Sexp-Fu-Flash Evil Evil-Escape
Evil-Local Evil-Search-Highlight-Persist Evil-Surround File-Name-Shadow Flx-Ido
Font-Lock Global-Anzu Global-Auto-Revert Global-Company Global-Eldoc
Global-Evil-Search-Highlight-Persist Global-Evil-Surround Global-Font-Lock
Global-Hl-Line Global-Page-Break-Lines Global-Spacemacs-Leader-Override
Global-Undo-Tree Global-Vi-Tilde-Fringe Helm Helm-Descbinds Helm-Flx Hl-Todo
Hybrid Ido-Vertical Info-Breadcrumbs-In-Mode-Line Line-Number Mouse-Wheel
Override-Global Persp Popwin Projectile Projectile-Global Recentf Save-Place
Savehist Shell-Dirtrack Show-Smartparens Show-Smartparens-Global
Smooth-Scrolling Spaceline-Helm Spaceline-Info Spacemacs-Leader-Override
Transient-Mark Undo-Tree Vi-Tilde-Fringe Volatile-Highlights Which-Key
Window-Numbering Winner Xterm-Mouse

I do a profiling it spend much cpu time in next line and previos line

- command-execute                                                 632  92%
 - call-interactively                                             632  92%
  - funcall-interactively                                         606  88%
   + evil-next-line                                               309  45%
   + evil-previous-line                                           265  38%
   + evil-search-next                                              32   4%
  + byte-code                                                      26   3%
+ ...                                                              20   2%
+ timer-event-handler                                              17   2%
+ redisplay_internal (C function)                                   6   0%
+ sp--save-pre-command-state                                        2   0%
+ global-hl-line-highlight                                          1   0%
+ evil-repeat-post-hook                                             1   0%
+ evil-flash-hook                                                   1   0%
+ evil--jump-hook                                                   1   0%

@izahn
Copy link
Contributor

izahn commented Jul 28, 2016

I was struggling with painfully slow scrolling also. I finally tracked it
down to hl-line mode. I now have (global-hl-line-mode -1) in my
dotspacemacs/user-config () and things are much better. Not sure if your
issue is the same, but curious to know if turning off hl-line-mode
improves things for you.

On Jul 26, 2016 11:45 PM, "jaycelq" notifications@github.com wrote:

The nXml mode is reacts really slow when editing xml file.
Here is my minor mode:

Enabled minor modes: Anzu Auto-Composition Auto-Compression Auto-Encryption
Column-Number Company Electric-Indent Eval-Sexp-Fu-Flash Evil Evil-Escape
Evil-Local Evil-Search-Highlight-Persist Evil-Surround File-Name-Shadow Flx-Ido
Font-Lock Global-Anzu Global-Auto-Revert Global-Company Global-Eldoc
Global-Evil-Search-Highlight-Persist Global-Evil-Surround Global-Font-Lock
Global-Hl-Line Global-Page-Break-Lines Global-Spacemacs-Leader-Override
Global-Undo-Tree Global-Vi-Tilde-Fringe Helm Helm-Descbinds Helm-Flx Hl-Todo
Hybrid Ido-Vertical Info-Breadcrumbs-In-Mode-Line Line-Number Mouse-Wheel
Override-Global Persp Popwin Projectile Projectile-Global Recentf Save-Place
Savehist Shell-Dirtrack Show-Smartparens Show-Smartparens-Global
Smooth-Scrolling Spaceline-Helm Spaceline-Info Spacemacs-Leader-Override
Transient-Mark Undo-Tree Vi-Tilde-Fringe Volatile-Highlights Which-Key
Window-Numbering Winner Xterm-Mouse

I do a profiling it spend much cpu time in next line and previos line

  • command-execute 632 92%
    • call-interactively 632 92%
    • funcall-interactively 606 88%
    • evil-next-line 309 45%
    • evil-previous-line 265 38%
    • evil-search-next 32 4%
    • byte-code 26 3%
  • ... 20 2%
  • timer-event-handler 17 2%
  • redisplay_internal (C function) 6 0%
  • sp--save-pre-command-state 2 0%
  • global-hl-line-highlight 1 0%
  • evil-repeat-post-hook 1 0%
  • evil-flash-hook 1 0%
  • evil--jump-hook 1 0%


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#6689, or mute the thread
https://github.com/notifications/unsubscribe-auth/AATm08CyP88ArMNrJWgGzeCGflXuFpt8ks5qZtRcgaJpZM4JVzvE
.

@jaycelq
Copy link
Author

jaycelq commented Jul 28, 2016

@izahn
It seemed that my issue is not much related to global-hl-line-mode. It only occurs in my Windows desktop when editing xml file. I use my mac for a test, it behaves much better.

@jaycelq
Copy link
Author

jaycelq commented Aug 2, 2016

I found it's the problem of smooth scroll. When I turn it off, it can scroll more smoothly. Am I using the wrong configuration?

@TheBB
Copy link
Collaborator

TheBB commented Aug 2, 2016

smooth-scroll does have problems. It's turned off by default in the development branch.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
@lebensterben lebensterben removed the stale marked as a stale issue/pr (usually by a bot) label Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Forum
  
To close
Development

No branches or pull requests

4 participants