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

grammars.nix: use github type for fetchTree where possible #1872

Merged

Conversation

max-privatevoid
Copy link
Contributor

fetchTree with git is slow even with shallow cloning. It might also be that shallow cloning simply doesn't work. Either way, the github fetcher is much faster as it downloads a tarball using the GitHub API. All the current grammars are from GitHub so this should reduce fetch time a lot.

@the-mikedavis the-mikedavis self-requested a review March 28, 2022 21:37
Copy link
Member

@the-mikedavis the-mikedavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I remember seeing a speed boost from switching to shallow. It was really horribly slow before shallow on really large repos like tree-sitter-c-sharp.

I thought we'd have to use fetchFromGitHub to get the fast tarball stuff, TIL about type = "github";! 🎉

@the-mikedavis the-mikedavis merged commit b63b37d into helix-editor:master Mar 28, 2022
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.

2 participants