Re: [PHP4BETA] Hoard
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP4BETA] Hoard | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5835@lists.php.net to get a copy of this message | ||
> Is this something that you're looking at to be integrated into the PHP4
> source?
Probably not. The main reason being the license is annoying.
> If so (or if it's something that someone could use as a 'bolt-on' addition
> when compiling PHP), then exactly what benefits could it bring to PHP? They
> say it "can dramatically improve the performance of multithreaded programs",
> but in what way?
It improves performance for threaded programs running on SMP boxes, and
yes, it might be possible to do a bolt-on job.
> It seems (from my interpretation) that as Hoard speeds up memory allocation,
> that this will only make a big difference for the CGI version of PHP, as
> memory is allocated primarily on a program's startup/shutdown. The Apache
> module version of PHP is always in memory, is it not?
Well, memory is still allocated. Not as often, true, but third-party libs
that just call malloc/free directly that are linked into PHP might benefit
as well. There is really no way to know if it will speed things up until
you give it a whirl.
-Rasmus