perf(lsp): avoid unnecessary string allocations when parsing content-length

This commit is contained in:
Yi Ming
2026-04-25 12:52:08 +08:00
parent 1235c956ca
commit bbd0fdd36d
2 changed files with 24 additions and 14 deletions

View File

@@ -177,6 +177,8 @@ PERFORMANCE
Lua.
• The table holding LSP data is now cleared using `table.clear`,
thus reducing GC and memory reallocation during each data reset.
• When parsing the received Content-Length messages,
the RPC client will no longer allocate extra strings.
PLUGINS