Code Monkey home page Code Monkey logo

Comments (6)

astorm avatar astorm commented on July 4, 2024

Possibly datapoint -- composer appears to send a gzip Accept-Encoding header, which implies it can handle gzip content.

Array
(
    [Host] => packages.pulsestorm.net
    [Accept-Encoding] => gzip
    [User-Agent] => Composer/009fcb4262154c8ff926dcd42e4621c250927884 (Darwin; 10.8.0; PHP 5.4.21)
)

If gzip encoding is added to the server's configuration it may go a long way towards mitigating the performance problems.

from composer-repository.

Flyingmana avatar Flyingmana commented on July 4, 2024

usage hint:

  • the packages.json files dont get requested for normal installs (when you have a composer.lock)
  • you only need to perform the update command, if you want to update the composer.lock file with new versions
  • if the others check out the changed composer.lock, they can install the new versions via the install command, which again, does not do this request to the repositories, as all needed informations are inside the composer.lock.

some more informations:
Actually, normal little usage of packagist produces already >20M on cache files, so we need to think about: Would splitting every package into an own json improve or worsen the situation.

Also: there are specialized solutions for situations where speed is an issue. Its the reason of the https://github.com/researchgate/broker project, and as satis now supports the mentioned features too, a possible solution for this problem would be, that you setup an own satis with only the packages you need in your company.

from composer-repository.

datenbrille avatar datenbrille commented on July 4, 2024

We (members of FireGento) will have an Hackathon right before Meet Magento in Germany and we will address this issue. We are in touch with the hosting company for a quick help and will maybe implement the mentioned splitting of json files.

from composer-repository.

Flyingmana avatar Flyingmana commented on July 4, 2024

main problem of caching the package definitions is resolved in current master of satis composer/satis@f44c455

from composer-repository.

astorm avatar astorm commented on July 4, 2024

Seems like this has been fixed over the past few days — closing.

from composer-repository.

Flyingmana avatar Flyingmana commented on July 4, 2024

cant people close their own issues?

from composer-repository.

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.