note 79876 deleted from function.crc32 by danbrown
| From: | danbrown@php.net | Date: | Thu, 06 Oct 2011 21:26:04 +0000 |
| Subject: | note 79876 deleted from function.crc32 by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183684@lists.php.net to get a copy of this message | ||
Note Submitter: daniele_dll at yahoo dot it
----
In response to manuel at sadism-softworks dot de ( http://it2.php.net/manual/en/function.crc32.php#75061
)
You should never buffer all this stuff because you will need a lot of I/O without any really
benefit! In a normal case (7.200rpm disk with ide/sata 8/16mb of cache) you should not read more
that 8kb, or, at least, not more of 16kb.
The reason is simple: if you read, for example, of 128kb the system will do 16 i/o reads each of
8kb!
So the performance will be the same (or really near) but you will use really few memory for the
script ... in that way you let to the server to have more memory for other scripts and stuffs