You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
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.
Aaron Meurer
unread,
Jun 2, 2015, 1:11:20 PM6/2/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sy...@googlegroups.com
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.