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.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to