Re: Mid-term Update for Cycle Collector (Google Summer of Code Project)
| From: | Jeff Moore | Date: | Sat, 14 Jul 2007 21:13:48 +0000 |
| Subject: | Re: Mid-term Update for Cycle Collector (Google Summer of Code Project) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-30939@lists.php.net to get a copy of this message | ||
David,
On Jul 14, 2007, at 1:55 PM, Rasmus Lerdorf wrote:
It is still extremely rare for code to have cyclic references. So while GC could prevent swapping in the case of a malicious user, or in the case of a coding mistake, I don't think the general case of typical code running under normal circumstances would consume less memory with GC enabled.This is a good point. On Jul 11, 2007, at 4:43 PM, David Wang wrote:
On the whole suite of tests (which includes the Graph and Template tests), execution time with unmodified PHP was 12:03. With cycle collection, it was 12:43.Since test suites repeatedly build up and tear down data structures, it seems to me that these would be great stress tests for a garbage collector, but not very representative of the patterns of an average php application. Do you have any performance/memory usage numbers for something more typical like a WordPress index page request or some such thing? Best Regards, Jeff