On Tue, 2011-02-01 at 01:04 +0100, Pierre Joye wrote:
> On Mon, Jan 31, 2011 at 11:33 PM, Stas Malyshev <smalys...@sugarcrm.com> 
> wrote:
> 
> >> But I strongly believe in a threaded base solution for windows. That's
> >> the only way to get anywhere close to the performance we can see on
> >> other platforms (read: posix).
> >
> > My experience is that performance differnces between Windows and Linux has
> > very little to do with server model, but much more to do with OS APIs (esp.
> > filesystem, but not only). Also, threading PHP is generally slower than
> > non-threading, so I don't see how threaded-base solution helps you there.
> 
> Well, let say we don't have the same experiences. And the threaded
> model in php is not that good anyway (TLS will help here). I did not
> say a threaded model can be the perfect solution but it is the way to
> go.

In case anybody was to play with optimizing the threaded model: There is
a branch of PHP which has some optimizations in there on
http://hg.genunix.org/php-experiment.hg The work was mostly done with
Sun CMT machines (Niagara T-3 and such) in mind and most stuff in there
is experimental but some of it might be interesting.
But even with these patches TSRM emulates a feature operating systems
already have, which is called "process isolation". For making benefit
from threaded environments we'd have to share more data over multiple
threads ... which would make the engine way more complex. Maybe it's
worth, maybe not ...

johannes


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

Reply via email to