Re: AW: [PHP-DEV] Garbage collector patch
| From: | Derick Rethans | Date: | Wed, 05 Dec 2007 18:44:52 +0000 |
| Subject: | Re: AW: [PHP-DEV] Garbage collector patch | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-33756@lists.php.net to get a copy of this message | ||
On Wed, 5 Dec 2007, Matthias Pigulla wrote:
> > To summarize the patch lead to approx. 5% slowdown and 3% memory
> > overhead for typical applications (as always, you mileage may vary
> > depending on your system's architecture and OS although my guesstimate
> > is that you will see even worse results in a 64bit environment).
>
> Does that slowdown result from housekeeping tasks alone that are a
> prerequisite for GCing or does it include running the new algorithm?
>
> Is it possible to always perform (unconditionally compile in) the
> necessary housekeeping tasks but stick with the current GC, so that
> cycle-detection only happens when the user calls a gc_go_find_cycles()
> function? Would that significantly improve the above numbers?
Yes, that would be possible, but it wouldn't speed anything up in case
you don't have any cycles.
Derick