Skip to content

Moving cursor is very laggy #613

Open
@danlamanna

Description

@danlamanna

Related: emacs-lsp/lsp-mode#837.

The lag goes away after running either lsp-disconnect or disabling lsp-ui-mode.

Emacs version:

GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, cairo version 1.17.4) of 2021-05-18

LSP info:

Checking for Native JSON support: OK
Check emacs supports `read-process-output-max': OK
Check `read-process-output-max' default has been changed from 4k: OK
Byte compiled against Native JSON (recompile lsp-mode if failing when Native JSON available): OK
`gc-cons-threshold' increased?: OK
Using gccemacs with emacs lisp native compilation (https://akrl.sdf.org/gccemacs.html): OK

The profiling report is:

                                                                         23  48% - lsp-ui-doc--make-request
                                                                         23  48%  - if
                                                                         23  48%   - progn
                                                                         23  48%    - let
                                                                         23  48%     - if
                                                                          9  19%      - if
                                                                          9  19%       - lsp-ui-doc--hide-frame
                                                                          9  19%        - if
                                                                          9  19%           progn
                                                                          8  17%      - lsp-ui-doc--hide-frame
                                                                          5  10%       - if
                                                                          5  10%        - progn
                                                                          4   8%         - if
                                                                          4   8%            let
                                                                          8  17% - timer-event-handler
                                                                          8  17%  - apply
                                                                          8  17%     #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_10>
                                                                          6  12%   winner-save-old-configurations
                                                                          4   8% - #<lambda 0x886c35a0f37e5a2>
                                                                          4   8%  - while
                                                                          4   8%   - if
                                                                          4   8%    - let*
                                                                          4   8%     - if
                                                                          4   8%      - progn
                                                                          4   8%       - lsp--parser-on-message
                                                                          4   8%        - condition-case
                                                                          4   8%         - let
                                                                          4   8%          - let*
                                                                          4   8%           - let*
                                                                          4   8%            - lsp--get-message-type
                                                                          4   8%             - if
                                                                          4   8%                if
                                                                          3   6% - redisplay_internal (C function)
                                                                          3   6%    mode-line-default-help-echo
                                                                          3   6% - sp--save-pre-command-state
                                                                          3   6%  - sp-point-in-string
                                                                          3   6%   - sp--syntax-ppss
                                                                          3   6%      syntax-ppss
                                                                          0   0% - ...
                                                                          0   0%    Automatic GC

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions