lua-mode
lua-mode copied to clipboard
Really bad performance while edit big lua table.
emacs version: GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu) of 2021-11-03
It's a almost 5000 lines lua table, for config.
local conf = {
[100] = function()
...
end,
[101] = function()
...
end,
[102] = function()
...
end,
...
}
Inserting a newline cost 10+ seconds.
@moyotar could you perhaps upload a gist of the table for easier repro?
@immerrr I'm sorry for the delay. Here's the gist which can cause the bad performance. Just go to line 1497 and insert a newline. big_tbl.lua