Re: [PHP4BETA] cvs: php4 /ext/session/ session.c

From: Date: Mon, 15 May 2000 19:02:58 +0000
Subject: Re: [PHP4BETA] cvs: php4 /ext/session/ session.c
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-15066@lists.php.net to get a copy of this message
On Mon, 15 May 2000, Sascha Schumann wrote: > > strchr() should be the exception to the rule where mem_* functions are > > faster than str_*. > > strchr: "compare every byte with C and '\0'. Stop at '\0'." > memchr: "compare every byte with C. Stop when the counter is zero." It is more like increment the char * each loop (you have this in both versions). Additionally: strchr(): checks for 0 memchr(): keeps a counter and checks it (two operations). Anyway, I don't really care. If you find it's quicker on most platforms change it. Andi

« previous php.version4 (#15066) next »