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

[+] Use --filter="blob:none" for git clone & Pre-Compiled Binaries to Speed Up Install Time #837

Open
Azathothas opened this issue Feb 22, 2024 · 1 comment
Labels
feature New feature or request

Comments

@Azathothas
Copy link

Hi, thanks for all the work on this awesome framework.
I had some ideas on how you could improve the initial installation step by using git filters & precompiled binaries

  • git clone --filter="blob:none"

Read: https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/

This is even better than --depth 1. Using git clone --filter="blob:none" significantly reduces clone time.
The larger the repo, the more time & bandwidth is saved.

I have been using an internal fork of install.sh, I have managed to reduce the initial setup & install time from 20-30 Mins to 5-10 Mins.
Most of it is due to not relying on go/cargo install and instead directly downloading pre-compiled statically linked binaries. from bin.ajam.dev
However, I understand, it's much safer/reliable to rely on go/cargo install than to trust me.
But, using git clone --filter="blob:none" should still shave off few minutes from install time.

@Azathothas Azathothas added the feature New feature or request label Feb 22, 2024
six2dez added a commit that referenced this issue Feb 23, 2024
@six2dez
Copy link
Owner

six2dez commented Feb 23, 2024

Hey, thanks for the suggestion! For the rust compilation I will leave it like this for now, currently the only rust tool needed is ripgen, but there are no official builds yet, otherwise we could grab the binary from there and skip the whole rust installation :)

Actually.... @d0nutptr @resyncgg could you please add the compiled binaries on the releases section? 🙏 🙏

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

No branches or pull requests

2 participants