Re: ZE2, objects and Request GC
| From: | Andi Gutmans | Date: | Mon, 17 Jun 2002 17:33:46 +0000 |
| Subject: | Re: ZE2, objects and Request GC | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-85270@lists.php.net to get a copy of this message | ||
At 12:58 PM 6/17/2002 -0400, l0t3k wrote:
is shutdown_executor called at the end of each request or at server shutdown ? im asking since it seems as if all "live" objects are automatically destructed in this call (i assume by calling their __destruct handler where appropriate). if this is the case, this seems as if if would allow me to avoid having to use resources to store underlying entities. currently with resources we incur a hash double lookup per object access (look for the rsrc id in a numeric bucket of the objects hash, then look up the entity in the resource list.) in ZE2 at least we can do something likeI suggest you use resources. It also gives you the persistent list possibilities if you need them. . Andiobject->value.obj.handle = (long)foo_ptrand spare the cost of the lookup when we need access to foo. or is it always recommended to use resources ?