Re: [PHP-DEV] CGI output performance

2001-05-19 Thread Sascha Schumann
On Sat, 19 May 2001, Andi Gutmans wrote: > Did you check how using sendfile() instead of write() effects this benchmark? Well, there is no sendfile hook in SAPI, so I am not sure how I should achieve that. Another problem with sendfile is that is not standardized and that various AP

Re: [PHP-DEV] CGI output performance

2001-05-19 Thread Andi Gutmans
Did you check how using sendfile() instead of write() effects this benchmark? Andi At 10:22 AM 5/19/2001 +0200, Sascha Schumann wrote: > Hi, > > while looking at the strace output of readfile() in a CGI > context, I noticed that the CGI code (a) uses stdio and (b) > that it only

Re: [PHP-DEV] CGI output performance

2001-05-19 Thread Stig Sæther Bakken
[Sascha Schumann <[EMAIL PROTECTED]>] > Hi, > > while looking at the strace output of readfile() in a CGI > context, I noticed that the CGI code (a) uses stdio and (b) > that it only outputs chunks with a maximum size of 16KB. > > The effect is clearly visible (reproducible, both tests were > run

[PHP-DEV] CGI output performance

2001-05-19 Thread Sascha Schumann
Hi, while looking at the strace output of readfile() in a CGI context, I noticed that the CGI code (a) uses stdio and (b) that it only outputs chunks with a maximum size of 16KB. The effect is clearly visible (reproducible, both tests were run with a warmed-up cache):