Skip to content

[Bug]: Severe performance degradation when vimtex is compiling #983

@moetayuko

Description

@moetayuko

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

When using bufferline.nvim and compiling tex (particularly large ones) in the background, neovim becomes unresponsive, and its CPU usage spikes to 100%. This issue resolves once the compilation process is complete. I profiled with snacks.profiler, and this function is identified to be the most time-consuming one (it's invoked with an unusually high frequency)

local buf_nums = utils.get_valid_buffers()

The maintainer of vimtex has no clue and suspects it's bufferline.nvim's issue.

What did you expect to happen?

normal cpu usage when vimtex is compiling

Config

https://github.com/LazyVim/LazyVim/blob/d0c366e4d861b848bdc710696d5311dca2c6d540/lua/lazyvim/plugins/ui.lua#L4-L58

Additional Information

...

commit

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions