The first step would be to use a profiler to figure out what part of
SymPy is using the CPU. The profiler in the standard library is a good
start (python -m profile). Another option that I like a lot is
pyinstrument.

It's also possible that your own code is doing something inefficiently.

In general, the CPU usage of various functions like simplify and
integrate can vary widely depending on what kind of expressions you
pass to them.

Aaron Meurer

On Tue, Jun 2, 2015 at 11:53 AM, Paul Royik <[email protected]> wrote:
> Hello.
> I noticed that sympy uses much CPU.
> Is there any way I can control its usage or control the code where it might
> occur.
> For now my code uses match extensively, but I still don't know what
> functions use much CPU: simplify, integrate, match etc.
> Also, is clear_cache impacts CPU usage?
>
> Thank you.
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/8776e1bd-d7fe-431a-bfa3-25a46708d125%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6KZxoq3kK5%3DXd_vimo_Xukhz-uTp98hEP6VigjSr%2BRxLA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to