Le samedi 05 mai 2012 à 12:56 -0600, Aaron Meurer a écrit :
> I'm not sure about this.  If you try commenting out the empty
> __slots__ definition for AtomicExpr, for example, the core tests take
> almost twice as long (41 seconds for me vs. 25 in master).  It's not
> clear why, though.  Commenting out the __slots__ in Basic, which is
> the only one that I know of that is non-empty, makes the tests take 28
> seconds, and commenting out the empty __slots__ for Expr makes them
> take 38 seconds.

When I remove __slots__, I don't see any meaningful difference. Either
something's very different between Mac and Ubuntu, or your timings are
bogus. Considering that they are very erratic, I guess it's the latter.

> But I imagine if we were to remove all __slots__ definitions in the
> core, that things would be much slower.

If a class doesn't have __slots__, __slots__ declarations in its
subclasses have no effect. So if you remove __slots__ from Basic, it's
basically as if you'd removed it from everywhere.

-- 
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