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

slowdown cursor movement #200

Open
11111000000 opened this issue Feb 25, 2023 · 3 comments
Open

slowdown cursor movement #200

11111000000 opened this issue Feb 25, 2023 · 3 comments
Labels
question Further information is requested

Comments

@11111000000
Copy link

it slowdown cursor movement in buffer

@11111000000 11111000000 changed the title mode slowdown cursor movement slowdown cursor movement Feb 25, 2023
@jcs090218
Copy link
Collaborator

Can you elaborate more on the problem? This package has no impact on the cursor movement. 🤔

@jcs090218 jcs090218 added the question Further information is requested label Apr 11, 2024
@Sylk1-9
Copy link

Sylk1-9 commented Jun 17, 2024

I think I have the same problem.

Usually, no issue with centaur tab. But when I open a file stored on a partition mounted via sshfs, the cursor is slow in any (local or remote) buffer of emacs. Actually, the overall reactivity of emacs is slow.

I ran a profiling, and identified centaur-tab as the source of the problem. Deactivating centaur tab mode restore the cursor speed (and overall emacs reactivity) to it normal state.

Centaur tab + sshfs seems to be the issue here.

Results of profiling:

      1950  74% - redisplay_internal (C function)
        1946  73%  - eval
        1946  73%   - centaur-tabs-line
        1943  73%    - centaur-tabs-current-tabset
        1943  73%     - centaur-tabs-buffer-tabs
        1932  73%      - centaur-tabs-buffer-update-groups
        1893  71%       - cl-mapcar
        1591  60%        - #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_37>
        1575  59%         - centaur-tabs-buffer-groups
        1403  53%          - centaur-tabs-project-name
        1394  52%           - project-current
        1394  52%            - project--find-in-directory
        1394  52%             - project-try-vc
         756  28%              - project--value-in-dir
         713  27%               - hack-dir-local-variables-non-file-buffer
         707  26%                - hack-dir-local-variables
         707  26%                 - hack-dir-local--get-variables
         699  26%                  - dir-locals-find-file
         527  20%                     locate-dominating-file
          35   1%               - #<compiled -0x1c84497813bdcbf3>
           7   0%                - kill-buffer
           5   0%                 - replace-buffer-in-windows
           5   0%                  - unrecord-window-buffer
           5   0%                     assq-delete-all
         373  14%              - locate-dominating-file
         326  12%                 #<compiled 0x15c08eb59410dc67>
          18   0%                #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_23>
           5   0%              - cl-find-if
           5   0%                 cl-find
           2   0%                #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_22>
          21   0%          - derived-mode-p
          17   0%           - provided-mode-derived-p
          14   0%              apply
          17   0%       - centaur-tabs-buffer-list
           7   0%          cl-mapcar
           6   0%        - centaur-tabs-filter-out
           6   0%         - cl-mapcar
           3   0%            #<compiled -0x14ab2388ba770cb1>
           4   0%  - mode-line-default-help-echo
           4   0%   - window-at-side-p
           4   0%      window-pixel-edges

P.S.: thanks for the amazing work on this project!

@jcs090218
Copy link
Collaborator

Yeah, the project finding is very slow with the Tramp. Projectile has a similar issue; see bbatsov/projectile#1232.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants