Re: cvs: php4 /sapi/thttpd thttpd.c

From: Date: Thu, 03 May 2001 09:56:07 +0000
Subject: Re: cvs: php4 /sapi/thttpd thttpd.c
References: 1 2  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5500@lists.php.net to get a copy of this message
[Andi Gutmans <andi@zend.com>] > At 11:45 AM 5/3/2001 +0200, Sascha Schumann wrote: > > > Well on my super-duper Redhat system the memcpy() is slower :) > > > > I compiled with simple optimization. When I remove -O, the > > results are similar to yours. > > I compiled with -O3. > > > In the case of a string with the length of IPv6, strlcpy is > > about 150% slower here. > > From my experience when the difference in speed between two solutions > is barely measurable (especially if it gives different results on > different platforms) you are better off writing the nicer code. You > will never, ever feel a performance difference in real life. It runs > once (or so) each request. Amen to that. - Stig -- Stig Sæther Bakken <ssb@fast.no> Fast Search & Transfer ASA, Trondheim, Norway

« previous php.cvs (#5500) next »