RE: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)

From: Date: Fri, 13 Jul 2007 01:35:05 +0000
Subject: RE: [PHP-DEV] Mid-term Update for Cycle Collector (Google Summer of Code Project)
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-30879@lists.php.net to get a copy of this message
> Could the garabage collector be started / stopped during script > executing from a userland function? zend_gc_enable/disable() in > addition > to an ini option to enable it at script startup? Yes, that functionality can be added fairly easily. Some GC code will still have to be executed (such as the if branches that currently check whether the GC is enabled or not :-)) but performance may increase slightly (since there will no longer be a function call for the GC to note down possible cycles it detects). However, a drastic performance increase will probably not be seen. It's very unlikely for the main garbage collection cycle to be run if there are no cycles present. (I can go into some technical details if you'd like). David

« previous php.internals (#30879) next »