The "no gc" crowd
Michel Fortin
michel.fortin at michelf.ca
Wed Oct 9 11:41:21 PDT 2013
On 2013-10-09 17:15:51 +0000, Andrei Alexandrescu
<SeeWebsiteForEmail at erdani.org> said:
> On 10/9/13 6:06 AM, Michel Fortin wrote:
>> I don't know about you, but circular references are not rare at all in
>> my code.
>
> Nor Facebook's. I can't give away numbers, but the fraction of cycles
> per total memory allocated averaged over all of Facebook's PHP programs
> (PHP being reference counted) is staggering. Staggering!
>
> If PHP didn't follow a stateless request model (which allows us to use
> region allocation and reclaim all memory upon the request's end), we'd
> be literally unable to run a server for more than a few minutes.
Don't remind me. About 8 years ago I had to abandon a big PHP project
simply because PHP couldn't deal with cycles. There was no way to scale
the thing.
--
Michel Fortin
michel.fortin at michelf.ca
http://michelf.ca
More information about the Digitalmars-d
mailing list