apr_socket_timeout speed (was Re: Compile-time vs. run-time checks)

2004-02-24 Thread Scott Lamb
On Feb 23, 2004, at 11:11 PM, Cliff Woolley wrote: On Mon, 23 Feb 2004, Scott Lamb wrote: significant difference between them. In transferring either big or small files with httpd-2.0 HEAD and ab over loopback on Darwin (keepalive on). Which I'd think would be the ideal situation for seeing an imp

Re: Compile-time vs. run-time checks

2004-02-24 Thread William A. Rowe, Jr.
At 01:33 PM 2/23/2004, Scott Lamb wrote: >On some older versions of platforms (Linux 2.2), these #defines exist but do >not work - it's not possible to set them. Can I assume that if APR is built >with a kernel in which it does work (Linux 2.4), it will be run with one as >well? Or should I inc

Re: Compile-time vs. run-time checks

2004-02-24 Thread Cliff Woolley
On Mon, 23 Feb 2004, Scott Lamb wrote: > significant difference between them. In transferring either big or > small files with httpd-2.0 HEAD and ab over loopback on Darwin > (keepalive on). Which I'd think would be the ideal situation for seeing > an improvement... Neither ab nor loopback make f

Re: Compile-time vs. run-time checks

2004-02-24 Thread Scott Lamb
On Feb 23, 2004, at 1:43 PM, Greg Stein wrote: On Mon, Feb 23, 2004 at 01:33:31PM -0600, Scott Lamb wrote: I'm putting together a patch to use SO_(RCV|SND)TIMEO for apr_socket_timeout where available; I expect I'll find it has better performance on some platforms, as it would no longer require usin

Re: Compile-time vs. run-time checks

2004-02-23 Thread Greg Stein
On Mon, Feb 23, 2004 at 01:33:31PM -0600, Scott Lamb wrote: > I'm putting together a patch to use SO_(RCV|SND)TIMEO for > apr_socket_timeout where available; I expect I'll find it has better > performance on some platforms, as it would no longer require using > non-blocking IO and preceding ever

Compile-time vs. run-time checks

2004-02-23 Thread Scott Lamb
I'm putting together a patch to use SO_(RCV|SND)TIMEO for apr_socket_timeout where available; I expect I'll find it has better performance on some platforms, as it would no longer require using non-blocking IO and preceding every read() and write() with a select(). (I intend to try benchmarking