Skip to content

Lag of 0.5-1 sec in large org files #792

@refaelsh

Description

@refaelsh

Describe the bug

When editing a large file (my NixOS configuration.org file is 2561 lines long) I feel a lag of 0.5-1 sec on any key press, especially in insert mode. On smaller files, there is no lag.
Here is my large NixOS configuration.org file: https://gitlab.com/-/snippets/3736795.

Steps to reproduce

Just try editing a large enough Org file, you will feel the lag immidiaty.

Expected behavior

No lag when editing large Org files.

Emacs functionality

N/A

Minimal init.lua

The same thing happens with nvim -u minimal_init.lua.

Screenshots and recordings

No response

OS / Distro

NixOS unstable

Neovim version/commit

0.10.1

Additional context

Similar issue: #443.
Not sure if its connected, but, in that issue, there was a lag of 5-6 seconds.
And, when the issue was solved, the OP stated at the end:

Now it's about 1-2 seconds, when before it was about 6 seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions