Re: [PHP4BETA] cvs: /php4 configure.in.in /php4/ext/standard file.c
| From: | Sascha Schumann | Date: | Sat, 11 Sep 1999 18:27:55 +0000 |
| Subject: | Re: [PHP4BETA] cvs: /php4 configure.in.in /php4/ext/standard file.c | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-4329@lists.php.net to get a copy of this message | ||
On Sat, Sep 11, 1999 at 06:15:40PM -0000, Sascha Schumann wrote:
> sas Sat Sep 11 14:15:40 1999 EDT
>
> Modified files:
> /php4 configure.in.in
> /php4/ext/standard file.c
> Log:
> optimize fpassthru/readfile to use mmap instead of fread
> which especially increases speed on large files.
Without change:
$ time ./php x > /dev/null
real 0m30.480s
user 0m7.847s
sys 0m22.171s
With change:
$ time ./php x > /dev/null
real 0m12.621s
user 0m6.769s
sys 0m5.540s
$ cat x
<?
for($i = 0; $i < 100000; $i++)
readfile("php");
--
Regards,
Sascha Schumann
Consultant