PHP curl causes a performance bottleneck. how can we optimize it? Question: http://segmentfault.com/question/3032/php%E7%9A%84curl%E9%80%A0%E6%88%90%E6%80%A7%E8%83%BD%E7%93%B6%E9 PHP curl causes performance bottlenecks, how to optimize?
Problem:
Http://segmentfault.com/question/3032/php%E7%9A%84curl%E9%80%A0%E6%88%90%E6%80%A7%E8%83%BD%E7%93%B6%E9%A2%88-%E5%A6%82%E4%BD%95%E4%BC%98%E5%8C%96
?
?
If you are downloading files, search for "php curl multithreading" or see [[http://www.lijingquan.net/php-mtidown.html | a multi-threaded PHP download class online]?
If you just get interface data, look at [[http://blog.longwin.com.tw/2009/10/php-multi-thread-curl-2009/ | PHP uses CURL to synchronously crawl multiple Web pages] and the final reference of the article
[[Http://blog.csdn.net/bill200711022/article/details/6861065133] the difference between common methods is also the best in libcurl speed and stability. In addition, some frameworks provide similar functions, such as Fat-Free Web: http, which also encapsulates fsockopen.