Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High memory usage when using a lot of packages #74

Closed
schmunk42 opened this issue Nov 16, 2017 · 5 comments
Closed

High memory usage when using a lot of packages #74

schmunk42 opened this issue Nov 16, 2017 · 5 comments

Comments

@schmunk42
Copy link

The package list is from an educational project which tries to include as many Yii2 packages as possible, it might be useful for you as a benchmarking tool.

composer.json

All values with filled caches...

AP

[6694.7MB/310.05s] Dependency resolution completed in 126.371 seconds
[650.9MB/322.22s] Memory usage: 650.91MB (peak: 6698.12MB), time: 322.22s

fxpio/cap (for comparision)

[643.7MB/40.37s] Dependency resolution completed in 3.530 seconds
[377.3MB/33.04s] Memory usage: 377.26MB (peak: 648.26MB), time: 33.04s
@SilverFire
Copy link
Member

Hm... I would like to think it's related to composer internals 😨

@schmunk42
Copy link
Author

I first thought it would be related to optimize-with-installed-packages: false/true, in a way that fxpio/cap would be using far less dependencies to analyze than with AP.

But it did not change the time/memory needed with fxpio/cap. I am also pretty clueless why this is happening.

@hiqsol
Copy link
Member

hiqsol commented Nov 17, 2017

That's because of:

    "pattern-skip-version": "(-build|-patch)"

Some bower/npm packages have really huge number of build/patch releases.

I'm not sure if it's safe to remove these releases from asset-packagist completely.

@schmunk42
Copy link
Author

@hiqsol Nice catch! Even without testing it, this should be the cause.

This is partially related to #67 - in case you start working on this you might consider an URL like https://asset-packagist.org/bower-releases to strip out the build & patch versions.

@github-actions
Copy link

Stale issue message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants