GithubHelp home page GithubHelp logo

[feature request] Prefetch about flexo HOT 4 CLOSED

adrfantini avatar adrfantini commented on August 19, 2024
[feature request] Prefetch

from flexo.

Comments (4)

nroi avatar nroi commented on August 19, 2024 1

I thought about this feature in the past, I admit it would be a nice feature from the user's perspective, but I've decided not to implement this for different reasons.

Most importantly, because it's wasteful in terms of resources: With this feature, you can't make sure that prefetched packages are actually needed by the client. It could be the case that the client first downloads version 1 of a given package, then flexo does a prefetch of version 2, but before the client downloads version 2, the package is already updated to version 3, and the client then directly upgrades from version 1 to version 3. So, you've just wasted the mirror's bandwidth by having downloaded version 2.
Also, how do you determine which packages to prefetch? The client might have downloaded a given package and then immediately uninstalled it. If you then also prefetch those packages, this becomes even more wasteful than it already is. So you would somehow have to tell flexo which packages are actually required by the client, which would increase the complexity quite a bit.

Given that Arch Linux mirrors are hosted by volunteers who have to cover the hosting costs with their own money, I don't feel good about implementing this kind of feature.

from flexo.

adrfantini avatar adrfantini commented on August 19, 2024

I understand and respect this decision.

from flexo.

FixedWing99 avatar FixedWing99 commented on August 19, 2024

Perhaps core components could be treated differently? Everyone downloads core components. This would also afford an opportunity to test it out.

Stephen

from flexo.

nroi avatar nroi commented on August 19, 2024

Perhaps core components could be treated differently?

But core components also tend to be rather small, which makes this feature not as useful.
I just checked the packages sizes from core.db:

  • Average size is around 5 MiB.
  • Median size is just 304 KiB.

At first glance, it seems to me like this would introduce significant complexity in the code base, without making flexo that much more useful.

from flexo.

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.