perf(graph): eliminate heavy allocations by substituting KnowledgeGraph clones with BorrowedGraph for json serialization

This commit is contained in:
Riz Ashraf committed 2026-09-21 16:33:48 +01:00
1 parent 1d5e4bd00d
commit 8934857635
2 files changed
+38 -18

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
local buf = vim.fn.bufnr('server/src/handlers_v2/graph.rs')
if buf == -1 then
vim.cmd('e server/src/handlers_v2/graph.rs')
buf = vim.api.nvim_get_current_buf()
end
return vim.api.nvim_buf_get_name(buf)