0

I'm profiling my code recently and I get stuck because there's a build in functions cost most of times in my code.

enter image description here

What does {built-in method _imp.exec_dynamic} actually do and what can I do for the better performance?

I google it but I can't find too much information on the internet, Is this problem relating to the dot operator, like np.pi or something else?

Can somebody give me advises or is there a way for studying this function? Thanks!

John Lai
  • 1
  • 1
  • You might consider using a better profiler like [Scalene](https://github.com/plasma-umass/scalene) which provides more granular information along with tons of other info. Full disclosure, I am one of the authors of Scalene. – EmeryBerger May 20 '21 at 00:48
  • Thanks for suggestion. I wonder if there has a window platform solution since my computer os is window. But I'll try it if I could! – John Lai May 20 '21 at 03:49
  • You see how the profiler is leading you down the garden path? Even good ones miss the problem. You should be aware of [*this method*](https://stackoverflow.com/a/378024/23771). – Mike Dunlavey May 21 '21 at 12:24
  • I have solved this problems, I found that the trace is broken since I'm using cython .pyx in my packages and my profiler can't trace it directly therefore I should need to use cython profiling technique instead. – John Lai May 23 '21 at 02:21

0 Answers0