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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 4 + 17 = ?

 
 [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.