Debugging numpy with pycharm / intellij is very slow

I am using a numpy based library for which the first step is to vectorize the array of input elements. It takes 0.7 seconds when the debugger is off and 33 seconds with the debugger on. For more complex operations, this ratio is still maintained - and therefore low tens of seconds become hundreds.

Based on other threads, โ€œrun-time information collectionโ€ should be disabled to improve performance. Well .. it already is .. so what else can you do (if anything)?

enter image description here

+4
source share
1 answer

2017.1 Intellij custom intellij cython extension. console:

/usr/local/opt/python/bin/python2.7 "/Users/sboesch/Library/Application Support/IntelliJIdea2017.1/python/helpers/pydev/setup_cython.py" build_ext --inplace

scientific python .

0

Source: https://habr.com/ru/post/1624643/


All Articles