Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Really bad performance while edit big lua table. #200

Open
moyotar opened this issue Feb 10, 2022 · 3 comments
Open

Really bad performance while edit big lua table. #200

moyotar opened this issue Feb 10, 2022 · 3 comments

Comments

@moyotar
Copy link

moyotar commented Feb 10, 2022

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,
        ...
}

image

@moyotar
Copy link
Author

moyotar commented Feb 10, 2022

Inserting a newline cost 10+ seconds.

@immerrr
Copy link
Owner

immerrr commented Feb 10, 2022

@moyotar could you perhaps upload a gist of the table for easier repro?

@moyotar
Copy link
Author

moyotar commented Mar 22, 2022

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants