Based on the comment, it's to make sure it's fast. So I think it's a good test.

I don't understand why it would use so much memory. That sounds like a
definite bug to me.

Does turning off the cache help?

Aaron Meurer

Sent from my iPad

On Jul 28, 2013, at 10:05 PM, "Ondřej Čertík" <[email protected]> wrote:

> Hi,
>
> I've noticed that the test_speed() test in
> sympy/core/tests/test_diff.py eats all my memory. Here is how to
> reproduce it:
>
> $ python -c "from sympy import Symbol; x = Symbol('x'); print x.diff(x, 
> 10**8)"
> 0
>
> It does finish, but my laptop is swapping a lot (I have 4GB of
> memory). I don't think this problem is new.
> In particular, it was me who committed this test in:
>
> https://github.com/sympy/sympy/commit/d96393c5b21a62b533c46c7e8b97ec958e1894a8
>
> Over 5 years ago. To be honest, I am not quite sure what the purpose of it is.
> Why would anyone need to differentiate 10**8 --- if it is anything
> more complicated, it is not going to be fast anyway.
>
> What do you think we should do about this one?
>
> Ondrej
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to