Git Product home page Git Product logo

Comments (3)

weihanglo avatar weihanglo commented on June 12, 2024 2

For shallow clone, we have -Zgitoxide and -Zgit currently experimenting that. For sparse checkouts, see #11165.

Thanks for the suggestion anyway :)

from cargo.

nain-F49FF806 avatar nain-F49FF806 commented on June 12, 2024 1

@weihanglo Thanks. TIL about the sparse registry protocol. I haven't changed the defaults, so according to this page, I suppose sparse is indeed being used. That is a relief to know.

Seeing the results of benchmarking the protocol implementation here, I am satisfied and shall be staying with sparse.

Out of curiosity, though, I cloned the git index manually on my machine (with --depth=1). And while the download was small enough ~100M, I didn't realise it'd be so huge checked out ~1.9G ! That indicates to me that this route might be optimised though (by shallow cloning the git index and sparse checking out only the necessary files). But this may be out of scope for the issue. So please feel free to close. :)

from cargo.

weihanglo avatar weihanglo commented on June 12, 2024

Are you using sparse registry protocol?

I believe the Updating crates.io index fetches index files on demand for each crate, so it is necessary for sparse index protocol. And in fact it is more efficient. Have you spotted anything that is really redundant?

If you switch to git index protocol, that index update could be down to one pass. Instead you'll need to download the entire crates.io index upfront, and that will kill your docker container.

from cargo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.