Skip to content

zls gets very slow on large files #1046

@Jarred-Sumner

Description

@Jarred-Sumner

Zig Version

0.11.0-dev.1863+a63134a4a

Zig Language Server Version

latest

Steps to Reproduce

  1. Have a large file (such as https://github.com/oven-sh/bun/blob/main/src/js_parser.zig#L15715)
  2. Start typing inside the clause of a scope-creating statement, like if (start.typing.here)

Expected Behavior

It should perform about as well as it does on small files.

Actual Behavior

Here is a 13 second gif. About 5 seconds for completions to appear when the expression changes

slow

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions