note 68068 added to function.ftp-nb-put

From: Date: Wed, 12 Jul 2006 07:11:14 +0000
Subject: note 68068 added to function.ftp-nb-put
Groups: php.notes 
Request: Send a blank email to php-notes+get-114714@lists.php.net to get a copy of this message
Don't add a sleep() inside the loop. If you do you will severely slow down the upload. In my tests, each time through the loop it send about 2.5K, looping about 220 times per second. (Which is very little.) You won't necessarily get the same numbers as me per loop, but clearly PHP does it's own management of the loop so that you don't consume all the CPU on the server. ---- Server IP: 216.194.113.175 Probable Submitter: 71.199.123.24 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.ftp-nb-put.php Edit -- http://master.php.net/note/edit/68068 Del: integrated -- http://master.php.net/note/delete/68068/integrated Del: useless -- http://master.php.net/note/delete/68068/useless Del: bad code -- http://master.php.net/note/delete/68068/bad+code Del: spam -- http://master.php.net/note/delete/68068/spam Del: non-english -- http://master.php.net/note/delete/68068/non-english Del: in docs -- http://master.php.net/note/delete/68068/in+docs Del: other reasons-- http://master.php.net/note/delete/68068 Reject -- http://master.php.net/note/reject/68068 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#114714) next »