Skip to content

versions 3.16.x are slower than 3.15.x #3322

@Arashiryuu

Description

@Arashiryuu

How are you using the lua-language-server?

NeoVim

Which OS are you using?

Windows

What is the issue affecting?

Type Checking, Completion, Diagnostics/Syntax Checking, Hover, Libraries

Expected Behaviour

Be able to parse/load the lua workspace/environment as fast as versions 3.15.x, or faster ideally.

Actual Behaviour

Many seconds slower to load into lua files such as init.lua.

Reproduction steps

Install versions 3.16.0 or later, and open a lua file.

Additional Notes

my lua_ls config looks like this;

lua_ls = {
    Lua = {
        hint = {
            semicolon = 'All'
        },
        runtime = {
            version = 'LuaJIT',
            path = {
                '?.lua',
                '?/init.lua'
            },
            pathStrict = true
        },
	    workspace = {
            checkThirdParty = false,
            library = vim.api.nvim_get_runtime_file('', true)
        },
	    telemetry = {
            enable = false
        }
    }
}

loading into init.lua for neovim has to scan ~1600 in the counter, and it takes at least 15 seconds on version 3.16.4, and only up to 4 seconds on 3.15.0.

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions