Coder Social home page Coder Social logo

rollingcurl's Introduction

rollingcurl

muitl_curl的优化版本

传统的muitl_curl请求都是一批处理完之后,再对这一批返回的结果进行处理

淘宝博客改进的写法,是一批中有一个处理完马上对结果进行处理, 地址:http://www.searchtb.com/2012/06/rolling-curl-best-practices.html

rollingcurl的写法,是一批中一个处理完马上处理结果,并在添加一个新的请求到队列中, 代码地址(淘宝博客最后提及):https://code.google.com/archive/p/rolling-curl/source/default/source

目录结构:

  • test.php : 测试文件
  • MuitlCurl.php : muitl_curl的写法
  • SimpleRollingCurl.php : 淘宝博客的改进写法
  • RollingCurl.php : 真正的RollingCurl

####Usage

  • php test.php

rollingcurl's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.