Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.0a3

Bug #7520 cyclic reference cloning causes timeout
Submitted: 2006-04-28 17:27 UTC
From: ben at mediafirma dot com Assigned: aidan
Status: Closed Package: PHP_Compat (version 1.5.0)
PHP Version: 4.3.11 OS: Mac OS X 10.4
Roadmaps: 1.6.0a1    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2006-12-14 07:37 UTC
Package:
Bug Type:
Summary:
From: ben at mediafirma dot com
New email:
PHP Version: Package Version: OS:

 

 [2006-04-28 17:27 UTC] ben at mediafirma dot com (Ben Ku)
Description: ------------ I have objects that have child objects that have child objects. All these objects have references to their parent object (dually linked). When trying to clone these objects using the serialize/deserialize clone, it causes significant slow-downs and will sometimes timeout.

Comments

 [2006-12-14 07:37 UTC] aidan (Aidan Lister)
I've done some quick tests, and var_export / eval is significantly faster for very large object hierarchies, but much slower for small objects. It's impractical to get the size of the object/hierarchy beforehand, so I don't see any realistic solution. I'll close the bug, but keep my ears open. Thanks for the report.