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

Optimize PoolBuilder to not load replaced targets if not required #11449

Merged

Conversation

Toflar
Copy link
Contributor

@Toflar Toflar commented May 2, 2023

Another attempt to fix #10410 and #9619.

The goal here is to not load replaced packages into the pool if no other package actually requires them. We have to treat all replace definitions as "optional packages".

/cc @driskell @stof @naderman @Seldaek

@Toflar
Copy link
Contributor Author

Toflar commented May 2, 2023

@driskell compared to your PR this should get rid of most of the 404 calls but not all of them. Some might still be there because some package actually does require one of those replaced packages.

// edit: or I missed another place where we should actually call markPackageNameForOptionalLoading() instead of markPackageNameForLoading() 😉

@Toflar
Copy link
Contributor Author

Toflar commented May 2, 2023

Note to self/mergers: This should definitely be Co-authored-by @driskell :)

@Toflar Toflar force-pushed the fix/poolbuilder-replace-should-be-optional branch from 11cb3dd to f994486 Compare May 2, 2023 20:12
Copy link
Member

@naderman naderman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think this makes sense now!

@naderman naderman merged commit 2928b87 into composer:main May 2, 2023
18 checks passed
@Toflar Toflar deleted the fix/poolbuilder-replace-should-be-optional branch May 2, 2023 21:50
@Seldaek
Copy link
Member

Seldaek commented May 4, 2023

Thanks everyone for finally getting this through 👍🏻

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

Successfully merging this pull request may close these issues.

None yet

4 participants