Le dimanche 06 mai 2012 à 13:28 +0200, [email protected] a
écrit :
> timing for bin/test core
> 
> with slots (15 samples):
> measures: sys_time, user_time, max_res_memory
> averages: 0.181 s      14.22 s      240.5 KB
> std_dev:   0.027          0.59             0.57
> 
> 
> slots commented on PickableWithSlots (17 samples):
> measures: sys_time, user_time, max_res_memory
> averages: 0.172 s      14.02 s        241.1 KB
> std_dev:   0.022          0.54             0.68
> 
> 
> slots commented on Basic (25 samples):
> measures: sys_time, user_time, max_res_memory
> averages: 0.188 s      14.76 s        266.6 KB
> std_dev:   0.030          0.52             0.50
> 
> 
> All this on a KVM virtual machine that reports two cores of
> Intel(R) Core(TM)2 Duo CPU T7700  @ 2.40GHz
> running debian testing
> 
> There is almost no difference.
> 
> So after the merge of Ronan's refactoring of the assumption system I
> will post a PR with removed slots (just in order to have more people
> run test on it).
> 
> If it ever gets to the point of being discussed for merging, the advantages 
> are:
> - Jython gets happier
> - no more wondering "should I define __slots__" or not.
> 
More importantly, it will lift the restrictions directly imposed by
__slots__, making it possible to define any attribute, and to use class
attributes as default values.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy?hl=en.

Reply via email to