Re: PHP 5.3 the slowest PHP of all times ?!?

From: Date: Mon, 31 Mar 2008 21:41:16 +0000
Subject: Re: PHP 5.3 the slowest PHP of all times ?!?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-36732@lists.php.net to get a copy of this message
Hi
This commit is responsible for the bad performance: http://cvs.php.net/viewvc.cgi/php-src/configure.in?r1=1.579.2.52.2.77.2.11&r2=1.579.2.52.2.77.2.12&diff_format=u
-gstabs versus -g should have no effect on production performance.
Ok, maybe i made a mistake, that's what i compared: bench.php with cvs update -r PHP_5_3 -D "2008-03-09 14:26 GMT":
Total              6.883
cvs update -D "2008-03-09 14:28 GMT":
Total             13.961
cvs diff -D "2008-03-09 14:26 GMT" -D "2008-03-09 14:28 GMT" ? pear/scripts cvs diff: Diffing . Index: configure.in =================================================================== RCS file: /repository/php-src/configure.in,v retrieving revision 1.647 retrieving revision 1.648 diff -r1.647 -r1.648 1c1 < ## $Id: configure.in,v 1.647 2008/02/17 20:49:46 helly Exp $ -*- autoconf -*- ---
## $Id: configure.in,v 1.648 2008/03/09 14:27:15 gwynne Exp $ -*- autoconf -*-
124a125,139
dnl Darwin 9 hack dnl Because the default debugging format used by Apple's GCC on Mac OS 10.5
dnl causes errors in all current and past versions of Autoconf, we do a little
dnl messing with the CFLAGS here to trick it. php_did_darwin9_cheat=0 case $host_alias in *darwin9*) echo $CFLAGS | grep -E '(^-g)|([[:space:]]-g)' 2>/dev/null >/dev/null
if test "$?" -ne 0; then
    php_did_darwin9_cheat=1
    CFLAGS="$CFLAGS -gstabs"
fi ;; esac 170c185,192
< GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[[^0-9]]*\([[0-9]]\+\)\.[[0-9]]\+\..*/\1/;1p'` ---
case $host_alias in *darwin*)
    GCC_MAJOR_VERSION=`$CC -dumpversion | $SED -nE '1s/([[0-9]]+)\.[[0-9]]+\..*/\1/;1p'`
    ;;
*)
    GCC_MAJOR_VERSION=`$CC --version | $SED -n '1s/[[^0-9]]*\([[0-9]]\+\)\.[[0-9]]\+\..*/\1/;1p'`
    ;;
esac 717a740,743
dnl Finish the Darwin hack if test "$php_did_darwin9_cheat" -eq 1; then
    CFLAGS=echo "$CFLAGS" | $SED -e 's/-gstabs//g'
fi


« previous php.internals (#36732) next »