Replies: 4 comments 1 reply
|
I'm sad to read you're facing slowdowns on your Neovim. On our side, we don't use Most of the activity in this plugin happens on the Chat buffer, which doesn't have auto commands. I would suggest following your AI suggestions and disabling plugins like lualine, noice, nvim-cmp, or any status/hint plugins, and check for performance again on a long session. And maybe run On my day-to-day, I'm running very tool-call intensive sessions, with many blocks, and I don't feel this slowdown. |
|
Thanks Carlos. |
|
Nice that you found it. I don't use any markdown render, I've tried 2 of them, and at the end of the day, I gave up. |
|
Thanks. |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I frequently see nvim slowdown when the size of the conversation grow big. In one session I asked ai diagnose and it found below. Any idea if it's related to agentic.nvim?
performance analysis of Neovim, specifically identifying high CPU usage related to LuaJIT Garbage Collection. Below is the transcribed text:
14.96% gc_sweep \leftarrow LuaJIT GC sweeping
9.19% lj_alloc_free \leftarrow LuaJIT memory freeing
8.70% propagatemark \leftarrow LuaJIT GC marking
5.62% marktree_lookup \leftarrow nvim extmark tree lookups
~33% of CPU is LuaJIT Garbage Collection. Some Lua plugin(s) are creating massive numbers of short-lived objects, causing the GC to run constantly and burn a full CPU core.
marktree_lookup at 5.6% on top of that points to too many extmarks — the data structure nvim uses for treesitter highlights, LSP diagnostics, signs, virtual text.
The two likely culprits together:
A plugin with a hot autocmd (on CursorMoved, TextChanged, etc.) allocating lots of Lua tables — check plugins like lualine, noice, nvim-cmp, or any status/hint plugins
Extmark flood from two clangd instances both pushing diagnostics/inlay hints into the same buffer simultaneously
To pinpoint the Lua hotspot, run this inside nvim:
:lua vim.uv.new_timer():start(0, 100, function() print(collectgarbage('count')) end)
All reactions