Hi! On 01/10/2008 11:27 AM Derick Rethans wrote: > On Wed, 9 Jan 2008, Tobias Schlitt wrote:
>> An idea would be to instanciate the newly created handler classes only >> when needed (via virtual-property checks), which would reduce the >> ammount of code to load on instantiating ezcPersistentSession and the >> memory usage occupied by objects. > Yeah, this could be usefull - it doesn't add that much > overhead to check, and it can save some class instantiation. However, > those 3 helper classes are just instantiated once, so I doubt actually > that we need to add complexity. Hehe, those are both valid arguments. However, we need to decide on what to do. I'd suggest to go for the "instantiation on the fly" concept. In many cases you will only want to load or save or delete an object (thinking about request logic here), so code for 2 classes will be loaded without beeing needed and 2 objects will be instantiated. As you said: The checks don't add too much overhead. Agreed? Cheers! Toby -- Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer [EMAIL PROTECTED] | eZ Systems AS | ez.no -- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
