Welcome Guest, Not a member yet? Register   Sign In
DataMapper & ORM performance
#8

[eluser]m4rw3r[/eluser]
If you use _to_array(), it will duplicate all the data anyway (+ it needs parsing the object to array) as PHP does not copy object -> array by reference (I mean in the internals, arrays are copy-on-write).

So I recommend passing the objects by reference instead (default in PHP 5), as you won't create duplicate sets of data with that method.


Messages In This Thread
DataMapper & ORM performance - by El Forum - 06-18-2009, 04:41 AM
DataMapper & ORM performance - by El Forum - 06-18-2009, 09:57 AM
DataMapper & ORM performance - by El Forum - 06-19-2009, 05:28 AM
DataMapper & ORM performance - by El Forum - 06-19-2009, 05:42 AM
DataMapper & ORM performance - by El Forum - 06-19-2009, 05:52 AM
DataMapper & ORM performance - by El Forum - 06-19-2009, 06:32 AM
DataMapper & ORM performance - by El Forum - 07-01-2009, 05:10 AM
DataMapper & ORM performance - by El Forum - 07-04-2009, 03:59 AM
DataMapper & ORM performance - by El Forum - 07-05-2009, 03:12 AM
DataMapper & ORM performance - by El Forum - 07-06-2009, 12:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB