note 103450 deleted from function.curl-multi-exec by danbrown

From: Date: Thu, 14 Apr 2011 15:02:01 +0000
Subject: note 103450 deleted from function.curl-multi-exec by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178843@lists.php.net to get a copy of this message
Note Submitter: fbparis ---- In all your examples, you should add a usleep() in the while loop to prevent CPU burning (and load average > 1) : <?php // ... $running = null; do{ curl_multi_exec($mh,$running); usleep(50000); // perfs are not altered, proc is safe :) }while($running > 0); // ... ?> It really makes a difference !

« previous php.notes (#178843) next »