Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3685 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23919 invoked from network); 1 Aug 2003 18:19:29 -0000 Received: from unknown (HELO asuka.nerv) (24.112.18.98) by pb1.pair.com with SMTP; 1 Aug 2003 18:19:29 -0000 Received: (qmail 6969 invoked from network); 1 Aug 2003 18:32:59 -0000 Received: from rei.nerv (HELO dummy.com) (rei@192.168.1.1) by asuka.nerv with SMTP; 1 Aug 2003 18:32:59 -0000 Reply-To: ilia@prohost.org To: Rasmus Lerdorf , internals@lists.php.net Date: Fri, 1 Aug 2003 14:31:57 -0400 User-Agent: KMail/1.5.3 References: In-Reply-To: Organization: Prohost.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200308011431.57345.ilia@prohost.org> Subject: Re: [PHP-DEV] libtool -prefer-non-pic for apxs builds? From: ilia@prohost.org (Ilia Alshanetsky) On August 1, 2003 12:22 pm, Rasmus Lerdorf wrote: > Guys, what do you think about defaulting the build to use -prefer-non-pic > and having libtool build a non-pic libphp4.so when building the Apache > DSO? That library isn't linked into other programs anyway, and Apache's > fork+exec model ensures the pages will be shared regardless of pic. I > don't really see what we gain by building it pic, and we certainly lose > quite a bit by doing so. In the order of 15-20% execution time on both > FreeBSD and Linux with gcc in my tests. I think this is a good idea, I've been manually doing the same thing on my servers by compiling cli & apache separately. Performance wise in my experience no-pic code is 25-30% faster on Linux. So far it worked perfectly and I had not experienced any problems. I see no reason why we cannot offer all PHP users the same performance advantages. Ilia