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

Best way to download large files using php-uv #22

Open
jimthunderbird opened this issue Sep 15, 2012 · 2 comments
Open

Best way to download large files using php-uv #22

jimthunderbird opened this issue Sep 15, 2012 · 2 comments

Comments

@jimthunderbird
Copy link

Hi,
What will be the best way to download a large file over tcp using php-uv?
Thanks.
Best Regards,
Jim

@chobie
Copy link
Owner

chobie commented Sep 15, 2012

what is the purpose for this?
maybe combination of uv_read_start and uv_fs_open i think.

Basically, decreasing function calls is the best way to improve PHP performance. so I should provide some functions which likes file_get_contents.

I didn't try to download a large file with php-uv yet. so it may contains some bugs regarding buffers.

@jimthunderbird
Copy link
Author

One use case is to download files in parallel and keep track of their progress. Yeah, so an async version of file_get_contents will be great.

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

No branches or pull requests

2 participants