Skip to content

Leverage ext-curl when possible to achieve high speed downloads #286

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

Merged
merged 1 commit into from
Jan 17, 2018
Merged

Leverage ext-curl when possible to achieve high speed downloads #286

merged 1 commit into from
Jan 17, 2018

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jan 10, 2018

This PR brings hirak/prestissimo-like download performance to Flex, but with greater compatibility with Composer's native behavior, thanks to a new extension point that is going to be part of Composer 1.7 (composer/composer#6985).

Meanwhile, it already provides concurrent connections, and auto-enables the curl-based downloader conditionally.

In short, it should be totally seamless.

}

protected function callbackGet($notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax)
public function callbackGet($notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax)
Copy link
Member

Choose a reason for hiding this comment

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

Should we tag it as being @internal?

@nicolas-grekas
Copy link
Member Author

nicolas-grekas commented Jan 11, 2018

PR ready, works GREAT!

@nicolas-grekas
Copy link
Member Author

PR ready for another try. All good on my side. Now able to do concurrent downloads on more files than prestissimo. As such, prestissimo is now disabled if found.

@fabpot
Copy link
Member

fabpot commented Jan 17, 2018

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 58364b1 into symfony:master Jan 17, 2018
fabpot added a commit that referenced this pull request Jan 17, 2018
…wnloads (nicolas-grekas)

This PR was merged into the 1.0-dev branch.

Discussion
----------

Leverage ext-curl when possible to achieve high speed downloads

This PR brings hirak/prestissimo-like download performance to Flex, but with greater compatibility with Composer's native behavior, thanks to a new extension point that is going to be part of Composer 1.7 (composer/composer#6985).

Meanwhile, it already provides concurrent connections, and auto-enables the curl-based downloader conditionally.

In short, it should be totally seamless.

Commits
-------

58364b1 Leverage ext-curl when possible to achieve high speed downloads
@nicolas-grekas nicolas-grekas deleted the curl branch January 17, 2018 07:39
tgalopin pushed a commit to tgalopin/flex that referenced this pull request Dec 3, 2020
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.

2 participants