On 2013-10-09 17:15:51 +0000, Andrei Alexandrescu
<[email protected]> 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
[email protected]
http://michelf.ca