Optimization for gigantic amount of nodes #995
Replies: 2 comments 11 replies
-
cc: @cseickel (not sure who else is maintaining the plugin) |
Beta Was this translation helpful? Give feedback.
-
That's awesome!
If we do, it would be within this file: https://github.com/nvim-neo-tree/neo-tree.nvim/blob/v2.x/lua/neo-tree/ui/renderer.lua Could you describe some of the bugs? I might know where to look if I understand a little more about what breaks. |
Beta Was this translation helpful? Give feedback.
-
I'm trying out a Linked List based internal for NuiTree.
Currently
tree:render()
recalculates everything each time it is called. That means:For projects with a huge number of files/folders, it becomes slow as more and more folders are expanded.
With the new implementation the goal is to:
I tried out
neo-tree
with the new NuiTree internal. But I'm facing some weird bugs.This discussion is to figure out what's wrong...
Does
neo-tree
mutate any internals of NuiTree that might be causing the issue? If yes, what new methods should NuiTree expose so thatneo-tree
does not need to hack into NuiTree internals anymore?P.S.: MunifTanjim/nui.nvim#285 is not usable yet.
Beta Was this translation helpful? Give feedback.
All reactions