Hacker News new | ask | show | jobs
by shirshak55 2201 days ago
composer is so slow tbh. It takes ages to download package and well requires me to setup swap even when i have 4 gb ram in server.
2 comments

I've never had issues with this, what sort of maddening package management are you doing? Are you just talking about installs that's only an occasional hit anyways...?
Have you used prestissimo? It allows parallel downloads and makes the process much much faster. https://github.com/hirak/prestissimo
I'm not sure how it compares, but an alpha for Composer 2.0 was released last week[1] and the release notes seem to imply that it runs in parallel by default now.

> Added support for parallel downloads of package metadata and zip files, this requires that the curl extension is present and we thus strongly recommend enabling curl

1: https://github.com/composer/composer/releases/tag/2.0.0-alph...

Yeah, using prestissimo makes package installation sooooo much faster. My Laravel project with over 100 dependencies downloads in under a minute, where it was like... 10 minutes before