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

fix: Slow project root detection due to glob #15

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

lawrence-laz
Copy link
Owner

We used to have **/*.zig as a glob pattern to detect project's root. This is quite slow for large non-zig projects though, because the search goes through all files to verify that the project does not contain any .zig files.

Having just build.zig as a prject root pattern should be enough though, because even the folder does not contain a build.zig file, the individiaul files/buffers are tested against all adapters by neotest.

Resolves #14

We used to have `**/*.zig` as a glob pattern to detect project's root.
This is quite slow for large non-zig projects though, because the search
goes through all files to verify that the project does not contain any
`.zig` files.

Having just `build.zig` as a prject root pattern should be enough
though, because even the folder does not contain a `build.zig` file, the
individiaul files/buffers are tested against all adapters by neotest.

Resolves #14
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

Successfully merging this pull request may close these issues.

[BUG] glob() performance affects neotest
1 participant