Coder Social home page Coder Social logo

Comments (5)

nabijaczleweli avatar nabijaczleweli commented on August 26, 2024

Is that easily traversable? I seem to have at least three versions of the registry and (IME) updating it takes way more time than the current approach does.

from cargo-update.

dzamlo avatar dzamlo commented on August 26, 2024

The update to the local registry use git. So the time it takes depends on how old your local version is.
I just tested now and doing a cargo search, which update the registry, took ~3s the first time and then ~1s. Doing cargo install-update -la takes ~8s each time, and I think most of it is time spent doing network requests.

For the traversability, I don't know. Looking at the way cargo does it would be a good way to know.

Because I think cargo-update is mainly IO-bounds, another way to speed it up, would be making multiples request in parallel, using threads or async code.

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on August 26, 2024

Check out the feat/6-use-registry branch for now, will flesh out tomorrow.

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on August 26, 2024

Very nice, m8

from cargo-update.

nabijaczleweli avatar nabijaczleweli commented on August 26, 2024

Released in v0.4.0.

from cargo-update.

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.