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


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to