On Wednesday 15 August 2007 19:51:30 Michael Bayer wrote: > On Aug 15, 2007, at 10:52 AM, [EMAIL PROTECTED] wrote: > > Second, i went to r3312, let init_attr() set a _state as plain > > dict and removed _state as property. The difference > > plain-dict/property (in favor of plain dict) is like 2-3%. > > > > property: > > loaded 10 items each with 500 subitems > > 523034 function calls (512957 primitive calls) in 2.556 CPU s > > loaded 30 items each with 500 subitems > > 1564374 function calls (1534297 primitive calls) in 7.796 CPU s > > loaded 16 items each with 1500 subitems > > 2499436 function calls (2451359 primitive calls) in 12.518 CPU s > > > > plain dict: > > loaded 10 items each with 500 subitems > > 513014 function calls (502937 primitive calls) in 2.525 CPU s > > loaded 30 items each with 500 subitems > > 1534314 function calls (1504237 primitive calls) in 7.623 CPU s > > loaded 16 items each with 1500 subitems > > 2451404 function calls (2403327 primitive calls) in 12.196 CPU s > > > > up to you > > great, post a patch for that on trac. #741, using _sa_attr_state, set-up in mapper._create_instance()
btw (if i havent asked yet) - do u have a place describing all things that happen to some user's object/class once given into SA's arms? e.g. all the attributes that grow on the instances (and has to be avoided by user), replacement of __init__, all the descriptors for attributes, etc? i can prepare something like half a page on this theme, but u'll have to fill up as i surely have no much idea of which is what/why. Title like "impact on user's object and class" --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---