note 23545 deleted from function.fgets by sniper

From: Date: Sat, 03 Jan 2004 02:46:53 +0000
Subject: note 23545 deleted from function.fgets by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62835@lists.php.net to get a copy of this message
Note Submitter: ---- In response to ylringwood@mailcity.com: you're right but that's not the problem. Lately I've been dealing with remote files with a few long lines in certain places, so to guarantee that I don't get a portion of a line, I went overkill and used fgets($file, 1048576); Little did I realize how seriously this was killing my performance. I toned it down to 65536 and it became blazingly fast. There is obviously some unnecessary processing going on. Beware.

« previous php.notes (#62835) next »