performance issue of sympy 1.1.1

29 views
Skip to first unread message

jinsheng dou

unread,
Sep 29, 2017, 8:06:03 AM9/29/17
to sympy
Hello

   Recently, I encountered a problem with sympy 1.1.1 .  I found the my program only cost 9s on my laptop(macbook pro) and but cost more than 4minutes on the server(Centos), the server hardware is good enough and despite the reasonable performance lost by the KVM, this gap was unreasonable hug. Then I checked the cprofile result which shaw server ran almost 25 times function call than the laptop one(profile result is attached). I checked my conda packages list(attached), I found the sympy is 1.1.1 on server but 1.0 on my laptop. I reverted the sympy to 1.0 on the server, then the results are back to normal now, very close. 

   BTW, The most used API of my program is geometry functions like intersection(line or ray intersect with polygon),encloses_point.

  Json.dou
  
ecs-evn.txt
mac-env.txt
profile_ecs.txt
profile_mac.txt

Kalevi Suominen

unread,
Sep 29, 2017, 9:35:09 AM9/29/17
to sympy

Can you find out how `primerange` is called in your code?

Kalevi Suominen
Reply all
Reply to author
Forward
0 new messages